Skip to content

fix __FILE__ macro#150

Merged
X39 merged 1 commit intoSQFvm:masterfrom
PabstMirror:fix__file__
Jan 31, 2021
Merged

fix __FILE__ macro#150
X39 merged 1 commit intoSQFvm:masterfrom
PabstMirror:fix__file__

Conversation

@PabstMirror
Copy link
Copy Markdown
Contributor

__FILE__ should be quote wrapped

.\sqfvm.exe --input "F:\DEV\CBA_A3\addons\hashes\fnc_hashEachPair.sqf" -v "F:\DEV\CBA_A3|\x\cba" --parse-only --automated
[ERR] [L46|C250|F:\DEV\CBA_A3\addons\hashes\fnc_hashEachPair.sqf]       Parse Error: syntax error, unexpected INVALID
#define DEBUG_MODE_FULL
#include "script_component.hpp"
TRACE_2("test",_a,_b);

becomes

    format ['[%1] (%2) %3: %4', toUpper 'cba', 'hashes', 'TRACE', format ['%1 %2:%3', format ['%1: _key=%2, _value=%3', str diag_frameNo + ' ' + ("VM CHECK"), (if (isNil {_key}) then [{nil}, {_key}]), (if (isNil {_value}) then [{nil}, {_value}])], F:\DEV\CBA_A3\addons\hashes\fnc_hashEachPair.sqf, 46 + 1]] call CBA_fnc_log;

@X39 X39 merged commit 3574aa2 into SQFvm:master Jan 31, 2021
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

Successfully merging this pull request may close these issues.

2 participants