AtomLinter / linter-glsl

Atom package that lints GLSL shaders on the fly.
https://atom.io/packages/linter-glsl
MIT License
15 stars 6 forks source link

macro parsing issue #33

Open K4stor opened 8 years ago

K4stor commented 8 years ago

Hi,

I am using these macros

#define Blend(base, blend, funcf)   vec3(funcf(base.r, blend.r), funcf(base.g, blend.g), funcf(base.b, blend.b))
#define BlendOverlayf(base, blend)  (base < 0.5 ? (2.0 * base * blend) : (1.0 - 2.0 * (1.0 - base) * (1.0 - blend)))
#define BlendOverlay(base, blend)   Blend(base, blend, BlendOverlayf)

and the linter gives me an error saying macro expension expected '(' following BlendOverlayf`

it doesn't get that BlendOverlayf ist a function.