12 lines
636 B
C++
12 lines
636 B
C++
// Fast Recompiling via function
|
|
// To Use: [] call ADDON_PREP_RECOMPILE; where ADDON is your prefix, e.g. TUT
|
|
#ifdef DISABLE_COMPILE_CACHE
|
|
#define LINKFUNC(x) {call FUNC(x)}
|
|
#define PREP_RECOMPILE_START if (isNil QUOTE(DOUBLES(ADDON,PREP_RECOMPILE))) then {DOUBLES(ADDON,RECOMPILES) = []; DOUBLES(ADDON,PREP_RECOMPILE) = {{call _x} forEach DOUBLES(ADDON,RECOMPILES);}}; private _recomp = {
|
|
#define PREP_RECOMPILE_END }; call _recomp; DOUBLES(ADDON,RECOMPILES) pushBack _recomp;
|
|
#else
|
|
#define LINKFUNC(x) FUNC(x)
|
|
#define PREP_RECOMPILE_START ; // disabled
|
|
#define PREP_RECOMPILE_END ; // disabled
|
|
#endif
|