tgjones / HlslTools

A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
http://timjones.io/blog/archive/2016/04/25/hlsl-tools-for-visual-studio-v1.0-released
Other
561 stars 97 forks source link

'#if defined FOO' without parentheses #168

Closed Reedbeta closed 4 years ago

Reedbeta commented 5 years ago

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.'