ArmaScriptCompiler
ArmaScriptCompiler copied to clipboard
The problem seems to be with parsing something like this (which works fine in SQF): ```sqf #define X__ ' #define __X ' #define XX__ " #define __XX " ``` e.g....
Situation inputdir "C:/Users/testuser/Desktop/a3/Functions_F/" OutputDir "C:/Users/testuser/Desktop/a3/Functions_F/" result file C:/Users/testuser/Desktop/a3/Functions_F/User/testuser/Desktop/a3/Functions_F/initFunctions.sqf Expected result file C:/Users/testuser/Desktop/a3/Functions_F/initFunctions.sqf
`#pragma SQFC_NO_COMPILE`
Is there any reason why `excludeList` have different path representation? I think would be nice to have it consistent.
Instead of just > the "-" operator do a > the "-" operator if left side arg is type number and right side is also number instead of matching possible...
https://github.com/dedmen/ArmaScriptCompiler/blob/master/src/main.cpp#L54 root_path is drive letter root, works fine for p-drive, doesn't work fine for not p-drive example, compile directory O:\dev\CBA_A3 for O:\dev\CBA_A3\addons\xeh\test The virtual path should be assembled from pboprefix,...
__has_include in SQF scripts cannot be reliably resolved at offline compile. These files should not be compiled
https://github.com/dedmen/ArmaScriptCompiler/blob/df64320b06cb4a21ea87e9cfec857000096acaf5/src/scriptCompiler.cpp#L235 If the value needs to be truncated to fit into a float, and there is a loss of precision, print a warning.
baermitumlaut [5:01 PM] @dedmen another optimization idea: transform BOOL && BOOL to BOOL && CODE dedmen [5:03 PM] Yeah. Thought about that but wasn't sure if there might be any...