/
redgpu
/
raygpu
Обзор
Документация
Войти
/
redgpu
/
raygpu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
amalgamation/glslang/Test/preprocess.inactive_stringify.vert
28 строк
486 B
manuel
Bump glslang to 16.0.0
31 окт 2025, 02:24
31 окт 2025, 02:24
2d4c73f
Код
Авторство
О чём код?
#version 460 // This tests that the preprocessor error // "error: '#' : (#) can be preceded in its line only by spaces or horizontal tab" // isn't enforced when inactive (e.g. inside #if 0) #if 0 #define STRINGIFY(X) #X #endif #define C 0 #if 1 #ifdef A #elif defined B #elif C // OK, since preprocessor evaluates to inactive #define STRINGIFY(X) #X #endif #endif // OK in comments // #define STRINGIFY(X) #X void main() { gl_Position = vec4(1.0); }