First module appearing in 3den (not zeus yet). Created custom PREP macros for compiling functions similar to CBA/ACE.
This commit is contained in:
1 parent
2a7c28af5f
commit
c5755fb259
42 files changed
+1805
-7
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#include "\x\cba\addons\main\script_macros_common.hpp"
|
||||
#include "\x\cba\addons\xeh\script_xeh.hpp"
|
||||
|
||||
// New PREP macros
|
||||
#undef PREP
|
||||
#ifdef DISABLE_COMPILE_CACHE
|
||||
// no compile cache
|
||||
#define PREP(fncName) TRIPLES(ADDON,fnc,fncName) = compile preprocessFileLineNumbers QPATHTOF(functions\DOUBLES(fnc,fncName).sqf)
|
||||
#define PREP_S(fncName,subfolder) TRIPLES(ADDON,fnc,fncName) = compile preprocessFileLineNumbers QPATHTOF(functions\subfolder\DOUBLES(fnc,fncName).sqf)
|
||||
#else
|
||||
// compile cache
|
||||
#define PREP(fncName) [QPATHTOF(functions\DOUBLES(fnc,fncName).sqf), QFUNC(fncName)] call CBA_fnc_compileFunction
|
||||
#define PREP_S(fncName,subfolder) [QPATHTOF(functions\subfolder\DOUBLES(fnc,fncName).sqf), QFUNC(fncName)] call CBA_fnc_compileFunction
|
||||
#endif
|
||||
Reference in new issue
Block a user