kayler-renslow / arma-intellij-plugin

A plugin for Intellij IDEA that allows for syntactical analysis, code inspections, and other nifty features for the SQF scripting language in Arma 3.
MIT License
41 stars 10 forks source link

(String) macros not yet supported? #32

Open kju opened 7 years ago

kju commented 7 years ago
#define QUOTE(var1) #var1

#ifdef AASD_PVP_VERSION //<file entry> or <preprocessor> expected, got #
    #define AASD_AI_TAG
#endif

Ref: https://community.bistudio.com/wiki/PreProcessor_Commands#.23

Ragebone commented 7 years ago

in sqf : No Error. in hpp: Yes Error message. But i think, that its doe to the #ifdef in an hpp: #define QUOTE(var1) #var1 #define bla bla #include "config.hpp" don't cause an error on my setup.

only if i add the #ifdef

it actually just marks the "#" of #ifdef and #endif . a #define in the middle of it, is alright.

i'm not sure why though.