Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect #if __has_include #6

Closed
dedmen opened this issue May 7, 2021 · 2 comments
Closed

Detect #if __has_include #6

dedmen opened this issue May 7, 2021 · 2 comments

Comments

@dedmen
Copy link
Owner

dedmen commented May 7, 2021

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

@killerswin2
Copy link
Contributor

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
Copy link
Owner Author

dedmen commented Feb 13, 2024

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 dedmen closed this as completed in f2ea896 Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants