diff --git a/specs/latest/1.0/index.html b/specs/latest/1.0/index.html index 1f00be6b3a..34284e8de3 100644 --- a/specs/latest/1.0/index.html +++ b/specs/latest/1.0/index.html @@ -28,7 +28,7 @@
+ The C++ standard, which the GLSL ES preprocessor specification refers to, has undefined behavior
+ when the defined
operator is generated by macro replacement when parsing the
+ controlling expression of an #if
or #elif
directive. When shader code
+ processed by the WebGL API generates the token defined
during macro replacement
+ inside a preprocessor expression, that token must be immediately handled as the
+ defined
operator before any further macro replacement.
+
+ This has no effect on macro expansion outside preprocessor directives that handle the
+ defined
operator.
+