dedmen / ArmaScriptCompiler

GNU General Public License v3.0
26 stars 12 forks source link

Detect #if __has_include #6

Closed dedmen closed 7 months ago

dedmen commented 3 years ago

__has_include in SQF scripts cannot be reliably resolved at offline compile. These files should not be compiled

killerswin2 commented 1 year ago

I'm currently adding ASC to antistasi and #if propressors is also failing for #if __A3_DEBUG__. scriptCompiler.txt A potential work around would be to allow for ASC to have a -D to define runtime macros.

dedmen commented 7 months ago

this was written when has_include was the only one. https://community.bistudio.com/wiki/PreProcessor_Commands#has_include all of the runtime ones should block it.

But for now can always use #pragma ASC_ignoreFile to ignore any file.