graphitemaster / glsl-parser

A GLSL parser
MIT License
260 stars 30 forks source link

Variadic Macros on Microsoft C++ compiler does not work like gcc. #9

Closed ozthekoder closed 4 years ago

ozthekoder commented 7 years ago

When used in Visual Studio 2015/2017 I get compiler errors that say "OPERATOR has no type identifier class" etc. I tried to come up with a fix myself but I am not that savy with c++ macros. If I am doing something wrong in visual studio, can you point me to the right direction? thank you!

graphitemaster commented 7 years ago

Can you get me an error log? I need to see the actual error message and not a abridged description. The compiler usually provides much more technical and useful diagnostics.

ozthekoder commented 7 years ago

Sorry about that, I am currently at work and on a mac, will update the issue with the actual error log from my windows pc later. For now, all the info I can provide is the exact line of the error: lexemes.h:271 which is included in multiple places but it specifically crashes at this #include: lexer.h:32 and the fact that all single variable macros seem to work, it is the OPERATOR with 3 arguments causing the issue.

Again thanks for taking the time to reply. Cheers.

graphitemaster commented 4 years ago

Closing this problem since I cannot reproduce it.