dy / prepr

C/GLSL-preprocessor in JS

Home Page:https://npmjs.org/package/prepr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't support `#if defined`

AndrewRayCode opened this issue · comments

    console.log(
      prepr(`
#define A 1
#if defined( A )
uniform float yes;
#endif
uniform float end;
    `)
    );

This outputs only

uniform float end;

I'm not sure if it's a separate problem, but it also doesn't handle static conditionals like #if defined( A ) || defined( B )

Should be fixed in 56c3de6

nice!

Thanks for the reports btw!