OOLua  2.0.1
C++ and Lua binding
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Error Checking

Defines the type of checks which will be performed. More...

Macros

#define OOLUA_RUNTIME_CHECKS_ENABLED
 Default: Enabled More...
 
#define OOLUA_CHECK_EVERY_USERDATA_IS_CREATED_BY_OOLUA
 Default: Enabled More...
 
#define OOLUA_USERDATA_OPTIMISATION
 Default: Enabled More...
 
#define OOLUA_DEBUG_CHECKS
 Default: Enabled when DEBUG or _DEBUG is defined More...
 
#define OOLUA_SANDBOX
 Default: Disabled More...
 

Detailed Description

Defines the type of checks which will be performed.

Macro Definition Documentation

#define OOLUA_CHECK_EVERY_USERDATA_IS_CREATED_BY_OOLUA

Default: Enabled

Does what it says on the tin, only valid when OOLUA_RUNTIME_CHECKS_ENABLED is enabled

Parameters
0Disabled
1Enabled
#define OOLUA_DEBUG_CHECKS

Default: Enabled when DEBUG or _DEBUG is defined

Provides the following

Parameters
0Disabled
1Enabled
#define OOLUA_RUNTIME_CHECKS_ENABLED

Default: Enabled

Checks that a type being pulled off the stack is of the correct type, if this is a proxy type, it also checks the userdata on the stack was created by OOLua

Parameters
0Disabled
1Enabled
#define OOLUA_SANDBOX

Default: Disabled

check everything

Parameters
0Disabled
1Enabled
#define OOLUA_USERDATA_OPTIMISATION

Default: Enabled

Userdata optimisation which checks for a magic cookie to try and ensure it was created by OOLua, by default this is on when userdata checking is on. Turning this off by setting it to zero will use a slower yet correct (as correct as can be) method.
Only meaningful when OOLUA_CHECK_EVERY_USERDATA_IS_CREATED_BY_OOLUA is enabled

Parameters
0Disabled
1Enabled