ArmaScriptCompiler icon indicating copy to clipboard operation
ArmaScriptCompiler copied to clipboard

Detect #if __has_include

Open dedmen opened this issue 4 years ago • 1 comments

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

dedmen avatar May 07 '21 08:05 dedmen

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.

killerswin2 avatar Jan 03 '23 19:01 killerswin2

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.

dedmen avatar Feb 13 '24 09:02 dedmen