mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3927 from acemod/use-proper-undefs
Fix for MikeRo Tools strict requirement for #undef usage
This commit is contained in:
commit
5d9def3874
@ -9,6 +9,8 @@
|
||||
#define DFUNC(var1) TRIPLES(ADDON,fnc,var1)
|
||||
#define DEFUNC(var1,var2) TRIPLES(DOUBLES(PREFIX,var1),fnc,var2)
|
||||
|
||||
#undef QFUNC
|
||||
#undef QEFUNC
|
||||
#define QFUNC(var1) QUOTE(DFUNC(var1))
|
||||
#define QEFUNC(var1,var2) QUOTE(DEFUNC(var1,var2))
|
||||
|
||||
@ -16,12 +18,14 @@
|
||||
#define SETVAR_SYS(var1,var2) setVariable [ARR_2(QUOTE(var1),var2)]
|
||||
#define SETPVAR_SYS(var1,var2) setVariable [ARR_3(QUOTE(var1),var2,true)]
|
||||
|
||||
#undef GETVAR
|
||||
#define GETVAR(var1,var2,var3) var1 GETVAR_SYS(var2,var3)
|
||||
#define GETMVAR(var1,var2) missionNamespace GETVAR_SYS(var1,var2)
|
||||
#define GETUVAR(var1,var2) uiNamespace GETVAR_SYS(var1,var2)
|
||||
#define GETPRVAR(var1,var2) profileNamespace GETVAR_SYS(var1,var2)
|
||||
#define GETPAVAR(var1,var2) parsingNamespace GETVAR_SYS(var1,var2)
|
||||
|
||||
#undef SETVAR
|
||||
#define SETVAR(var1,var2,var3) var1 SETVAR_SYS(var2,var3)
|
||||
#define SETPVAR(var1,var2,var3) var1 SETPVAR_SYS(var2,var3)
|
||||
#define SETMVAR(var1,var2) missionNamespace SETVAR_SYS(var1,var2)
|
||||
@ -82,6 +86,7 @@
|
||||
#ifdef DISABLE_COMPILE_CACHE
|
||||
#define PREP(fncName) DFUNC(fncName) = compile preprocessFileLineNumbers QPATHTOF(functions\DOUBLES(fnc,fncName).sqf)
|
||||
#else
|
||||
#undef PREP
|
||||
#define PREP(fncName) [QPATHTOF(functions\DOUBLES(fnc,fncName).sqf), QFUNC(fncName)] call CBA_fnc_compileFunction
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user