
According to the GLSL spec, the second parameter to #line should be an integer source string number and __FILE__ will be substituted with the integer source string number currently processed. This patch extends the syntax of #line and __FILE__. Now #line accepts as the second parameter a filename string quoted by double quotation marks. And if such a #line is set, __FILE__ will be substituted with the currently set filename string. The implementation is done via introducing a new extension GL_GOOGLE_cpp_style_line_directive using the extension framework. The purpose is to support cpp-style #line directives, which is required by #include.
11 lines
301 B
Plaintext
11 lines
301 B
Plaintext
preprocessor.cpp_style_line_directive.vert
|
|
preprocessor.edge_cases.vert
|
|
preprocessor.errors.vert
|
|
preprocessor.extensions.vert
|
|
preprocessor.function_macro.vert
|
|
preprocessor.line.vert
|
|
preprocessor.line.frag
|
|
preprocessor.pragma.vert
|
|
preprocessor.simple.vert
|
|
preprocessor.success_if_parse_would_fail.vert
|