mirror of https://gitlab.freedesktop.org/mesa/mesa
Here we use a leading space to isolate them from
the code they will be inserted into. For example:
#define VALUE -1.0
int a = -VALUE;
Should be evaluated to int a = - -1.0; not int a = --1.0;
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7932
Cc: mesa-stable
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21352>
(cherry picked from commit
|
||
---|---|---|
.. | ||
clc | ||
glsl | ||
isaspec | ||
nir | ||
spirv | ||
builtin_type_macros.h | ||
glsl_types.cpp | ||
glsl_types.h | ||
meson.build | ||
nir_gl_types.h | ||
nir_types.cpp | ||
nir_types.h | ||
shader_enums.c | ||
shader_enums.h | ||
shader_info.h |