#define CHECK_SCRIPT_STACK CCheckScriptStack CHECK_SCRIPT_STACK_1(css_,__COUNTER__)(gEnv->pScriptSystem, __FILE__, __LINE__)
IScriptSystem.h
#define CHECK_SCRIPT_STACK_1(x,y) CHECK_SCRIPT_STACK_2(x,y)
IScriptSystem.h
#define CHECK_SCRIPT_STACK_2(x,y) x##y
IScriptSystem.h
#define CRYSCRIPTSYSTEM_API DLL_IMPORT
IScriptSystem.h
CRYSCRIPTSYSTEM_EXPORTS
#define SCRIPT_CHECK_PARAMETERS(_n) \ if (pH->GetParamCount() != _n) \ { CryWarning(VALIDATOR_MODULE_SCRIPTSYSTEM,VALIDATOR_WARNING,"[%s] %d arguments passed, " #_n " expected)", __FUNCTION__,pH->GetParamCount()); \ return pH->EndFunction(); }
ScriptHelpers.h
#define SCRIPT_CHECK_PARAMETERS_MIN(_n) \ if (pH->GetParamCount() < _n) \ { CryWarning(VALIDATOR_MODULE_SCRIPTSYSTEM,VALIDATOR_WARNING,"[%s] %d arguments passed, at least " #_n " expected)", __FUNCTION__,pH->GetParamCount()); \ return pH->EndFunction(); }
ScriptHelpers.h
#define SCRIPT_CHECK_PARAMETERS2(_n, _n2) \ if ((pH->GetParamCount() != _n) && (pH->GetParamCount() != _n2)) \ { CryWarning(VALIDATOR_MODULE_SCRIPTSYSTEM,VALIDATOR_WARNING,"[%s] %d arguments passed, " #_n " or " #_n2 " expected)", __FUNCTION__,pH->GetParamCount()); \ return pH->EndFunction(); }
ScriptHelpers.h
#define SCRIPT_CHECK_PARAMETERS3(_n, _n2, _n3) \ if ((pH->GetParamCount() != _n) && (pH->GetParamCount() != _n2) && (pH->GetParamCount() != _n3)) \ { CryWarning(VALIDATOR_MODULE_SCRIPTSYSTEM,VALIDATOR_WARNING,"[%s] %d arguments passed, " #_n ", " #_n2 " or " #_n3 " expected)", __FUNCTION__,pH->GetParamCount()); \ return pH->EndFunction(); }
ScriptHelpers.h
#define SCRIPT_REG_CLASSNAME
ScriptHelpers.h
This define SCRIPT_REG_CLASSNAME needed for Xenon compiler.
#define SCRIPT_REG_FUNC(func) RegisterFunction( #func,functor_ret(*this,SCRIPT_REG_CLASSNAME func) );
ScriptHelpers.h
#define SCRIPT_REG_GLOBAL(var) RegisterGlobal( #var,var );
ScriptHelpers.h
#define SCRIPT_REG_TEMPLFUNC(func,sFuncParams) RegisterTemplateFunction( #func,sFuncParams,*this,SCRIPT_REG_CLASSNAME func );
ScriptHelpers.h
Because Xenon compiler cannot do it correctly.