We have some code that occasionally uses a preprocessor directive like #if defined FOO, which means the same thing as #if defined(FOO). (Apparently the parentheses are optional—who knew? Not me, until two minutes ago.) Anyway, the HLSL parser barfs on this syntax with 'Comment or end-of-line expected.'
We have some code that occasionally uses a preprocessor directive like
#if defined FOO
, which means the same thing as#if defined(FOO)
. (Apparently the parentheses are optional—who knew? Not me, until two minutes ago.) Anyway, the HLSL parser barfs on this syntax with 'Comment or end-of-line expected.'