Defines macros imported to other functions
script_macros.hpp | Defines macros imported to other functions |
Macros | |
PREFIX | |
COMPONENT_NAME | |
ADDON | PREFIX_COMPONENT |
VERSION | |
VERSION_STR | |
VERSION_AR | |
VERSION_REQUIRED | |
LOG | Used for logging messages to the extension (ocap-ext log file). |
SYSCHAT | Used for debug purposes to send a string to all clients with interfaces. |
SHOULDSAVEEVENTS | Used to determine if events should currently be saved based on OCAP_recorder_recording and <OCAP_recorder_startTime>. |
BOOL | Forces a true/false return of input. |
ARR2 | Resolves arguments to array, used for entries to LOG that requires array input. |
#define SHOULDSAVEEVENTS ( (missionNamespace getVariable [QGVAR(recording), false]) && missionNamespace getVariable [QGVAR(startTime), -1] > -1 )
Used to determine if events should currently be saved based on OCAP_recorder_recording and <OCAP_recorder_startTime>.
#define ARR2( _arg1, _arg2 ) [_arg1, _arg2]
Resolves arguments to array, used for entries to LOG that requires array input.
#define PREFIX OCAP
#define COMPONENT_NAME QUOTE( PREFIX - COMPONENT_BEAUTIFIED )
#define COMPONENT main
#define VERSION 2.0
#define VERSION_STR 2.0.0
#define VERSION_AR 2,0,0
#define VERSION_REQUIRED 2.10
Used for logging messages to the extension (ocap-ext log file).
#define OCAPEXTLOG( _args ) [":LOG:", _args] call EFUNC(extension,sendData)
Used for debug purposes to send a string to all clients with interfaces.
#define SYSCHAT remoteExec ["systemChat", [0, -2] select isDedicated]
Used to determine if events should currently be saved based on OCAP_recorder_recording and OCAP_recorder_startTime.
#define SHOULDSAVEEVENTS ( (missionNamespace getVariable [QGVAR(recording), false]) && missionNamespace getVariable [QGVAR(startTime), -1] > -1 )
Forces a true/false return of input.
#define BOOL( _cond ) ([0,1] select (_cond))
Resolves arguments to array, used for entries to LOG that requires array input.
#define ARR2( _arg1, _arg2 ) [_arg1, _arg2]