Script_Macros

CHECK_SCRIPT_STACK Macro
C++
#define CHECK_SCRIPT_STACK CCheckScriptStack CHECK_SCRIPT_STACK_1(css_,__COUNTER__)(gEnv->pScriptSystem, __FILE__, __LINE__)
File

IScriptSystem.h

CHECK_SCRIPT_STACK_1 Macro
C++
#define CHECK_SCRIPT_STACK_1(x,y) CHECK_SCRIPT_STACK_2(x,y)
File

IScriptSystem.h

CHECK_SCRIPT_STACK_2 Macro
C++
#define CHECK_SCRIPT_STACK_2(x,y) x##y
File

IScriptSystem.h

CRYSCRIPTSYSTEM_API Macro
C++
#define CRYSCRIPTSYSTEM_API DLL_IMPORT
File

IScriptSystem.h

Description

CRYSCRIPTSYSTEM_EXPORTS

SCRIPT_CHECK_PARAMETERS Macro
C++
#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(); }
File

ScriptHelpers.h

SCRIPT_CHECK_PARAMETERS_MIN Macro
C++
#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(); }
File

ScriptHelpers.h

SCRIPT_CHECK_PARAMETERS2 Macro
C++
#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(); }
File

ScriptHelpers.h

SCRIPT_CHECK_PARAMETERS3 Macro
C++
#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(); }
File

ScriptHelpers.h

SCRIPT_REG_CLASSNAME Macro
C++
#define SCRIPT_REG_CLASSNAME 
File

ScriptHelpers.h

Description

This define SCRIPT_REG_CLASSNAME needed for Xenon compiler.

SCRIPT_REG_FUNC Macro
C++
#define SCRIPT_REG_FUNC(func) RegisterFunction( #func,functor_ret(*this,SCRIPT_REG_CLASSNAME func) );
File

ScriptHelpers.h

SCRIPT_REG_GLOBAL Macro
C++
#define SCRIPT_REG_GLOBAL(var) RegisterGlobal( #var,var );
File

ScriptHelpers.h

SCRIPT_REG_TEMPLFUNC Macro
C++
#define SCRIPT_REG_TEMPLFUNC(func,sFuncParams) RegisterTemplateFunction( #func,sFuncParams,*this,SCRIPT_REG_CLASSNAME func );
File

ScriptHelpers.h

Description

Because Xenon compiler cannot do it correctly.