|
enum | orxDEBUG_LEVEL {
orxDEBUG_LEVEL_ANIM = 0,
orxDEBUG_LEVEL_CLOCK,
orxDEBUG_LEVEL_COMMAND,
orxDEBUG_LEVEL_CONFIG,
orxDEBUG_LEVEL_DISPLAY,
orxDEBUG_LEVEL_FILE,
orxDEBUG_LEVEL_INPUT,
orxDEBUG_LEVEL_JOYSTICK,
orxDEBUG_LEVEL_KEYBOARD,
orxDEBUG_LEVEL_MEMORY,
orxDEBUG_LEVEL_MOUSE,
orxDEBUG_LEVEL_OBJECT,
orxDEBUG_LEVEL_PARAM,
orxDEBUG_LEVEL_PHYSICS,
orxDEBUG_LEVEL_PLUGIN,
orxDEBUG_LEVEL_PROFILER,
orxDEBUG_LEVEL_RENDER,
orxDEBUG_LEVEL_SCREENSHOT,
orxDEBUG_LEVEL_SOUND,
orxDEBUG_LEVEL_SYSTEM,
orxDEBUG_LEVEL_TIMER,
orxDEBUG_LEVEL_LOG,
orxDEBUG_LEVEL_ASSERT,
orxDEBUG_LEVEL_USER,
orxDEBUG_LEVEL_NUMBER,
orxDEBUG_LEVEL_MAX_NUMBER = 32,
orxDEBUG_LEVEL_ALL = 0xFFFFFFFE,
orxDEBUG_LEVEL_NONE = orxENUM_NONE
} |
|
Debug module Module used to output debug info and assert code
#define orxASSERT |
( |
|
TEST, |
|
|
|
... |
|
) |
| |
#define orxDEBUG_INIT |
( |
| ) |
|
Value:do \
{ \
{ \
} \
{ \
} \
#define __orxVERSION_FULL_STRING__
#define orxANSI_KZ_COLOR_BLINK_ON
#define orxANSI_KZ_COLOR_FG_DEFAULT
#define orxANSI_KZ_COLOR_BLINK_OFF
#define orxANSI_KZ_COLOR_FG_RED
#define orxANSI_KZ_COLOR_FG_GREEN
#define orxDEBUG_KU32_STATIC_MASK_USER_ALL
orxDLLAPI orxU32 orxFASTCALL orxSystem_GetVersionNumeric()
orxDLLAPI orxSTATUS orxFASTCALL _orxDebug_Init()
orxDLLAPI orxU32 orxFASTCALL _orxDebug_GetFlags()
#define orxDEBUG_KU32_STATIC_MASK_DEBUG
orxDLLAPI void orxFASTCALL _orxDebug_SetFlags(orxU32 _u32Add, orxU32 _u32Remove)
orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionFullString()
#define orxANSI_KZ_COLOR_FG_YELLOW
Definition at line 221 of file orxDebug.h.
#define orxDEBUG_KS32_BUFFER_OUTPUT_SIZE 2048 |
#define orxDEBUG_KU32_STATIC_FLAG_CALLBACK 0x00000080 |
#define orxDEBUG_KU32_STATIC_FLAG_CONSOLE 0x00000040 |
#define orxDEBUG_KU32_STATIC_FLAG_FILE 0x00000010 |
#define orxDEBUG_KU32_STATIC_FLAG_FULL_TIMESTAMP 0x00000002 |
#define orxDEBUG_KU32_STATIC_FLAG_NONE 0x00000000 |
#define orxDEBUG_KU32_STATIC_FLAG_TAGGED 0x00000008 |
#define orxDEBUG_KU32_STATIC_FLAG_TERMINAL 0x00000020 |
#define orxDEBUG_KU32_STATIC_FLAG_TIMESTAMP 0x00000001 |
#define orxDEBUG_KU32_STATIC_FLAG_TYPE 0x00000004 |
#define orxDEBUG_KU32_STATIC_MASK_DEBUG 0x000000BD |
#define orxDEBUG_KU32_STATIC_MASK_DEFAULT 0x000000F5 |
#define orxDEBUG_KU32_STATIC_MASK_USER_ALL 0x0FFFFFFF |
#define orxDEBUG_KZ_DEFAULT_DEBUG_FILE "orx-debug.log" |
#define orxDEBUG_KZ_DEFAULT_DEBUG_SUFFIX "-debug.log" |
#define orxDEBUG_KZ_DEFAULT_LOG_FILE "orx.log" |
#define orxDEBUG_KZ_DEFAULT_LOG_SUFFIX ".log" |
#define orxDEBUG_PRINT |
( |
|
LEVEL, |
|
|
|
STRING, |
|
|
|
... |
|
) |
| |
#define orxDEBUG_SETBASEFILENAME |
( |
|
FILE | ) |
|
Value:do \
{ \
{ \
orxCHAR zBuffer[512]; \
\
_orxDebug_SetLogFile(zBuffer); \
} \
else \
{ \
_orxDebug_SetLogFile(FILE); \
} \
#define orxDEBUG_KZ_DEFAULT_LOG_SUFFIX
orxDLLAPI const orxSTRING orxSTRING_EMPTY
Definition at line 354 of file orxDebug.h.
#define orxDEBUG_SETDEBUGFILE |
( |
|
FILE | ) |
|
typedef orxSTATUS(orxFASTCALL * orxDEBUG_CALLBACK_FUNCTION) (orxDEBUG_LEVEL _eLevel, const orxSTRING _zFunction, const orxSTRING _zFile, orxU32 _u32Line, const orxSTRING _zLog) |
Enumerator |
---|
orxDEBUG_LEVEL_ANIM |
Anim Debug
|
orxDEBUG_LEVEL_CLOCK |
Clock Debug
|
orxDEBUG_LEVEL_COMMAND |
Command Debug
|
orxDEBUG_LEVEL_CONFIG |
Config Debug
|
orxDEBUG_LEVEL_DISPLAY |
Display Debug
|
orxDEBUG_LEVEL_FILE |
File Debug
|
orxDEBUG_LEVEL_INPUT |
Input Debug
|
orxDEBUG_LEVEL_JOYSTICK |
Joystick Debug
|
orxDEBUG_LEVEL_KEYBOARD |
Keyboard Debug
|
orxDEBUG_LEVEL_MEMORY |
Memory Debug
|
orxDEBUG_LEVEL_MOUSE |
Mouse Debug
|
orxDEBUG_LEVEL_OBJECT |
Object Debug
|
orxDEBUG_LEVEL_PARAM |
Param Debug
|
orxDEBUG_LEVEL_PHYSICS |
Physics Debug
|
orxDEBUG_LEVEL_PLUGIN |
Plug-in Debug
|
orxDEBUG_LEVEL_PROFILER |
Profiler Debug
|
orxDEBUG_LEVEL_RENDER |
Render Debug
|
orxDEBUG_LEVEL_SCREENSHOT |
Screenshot Debug
|
orxDEBUG_LEVEL_SOUND |
Sound Debug
|
orxDEBUG_LEVEL_SYSTEM |
System Debug
|
orxDEBUG_LEVEL_TIMER |
Timer Debug
|
orxDEBUG_LEVEL_LOG |
Log Debug
|
orxDEBUG_LEVEL_ASSERT |
Assert Debug
|
orxDEBUG_LEVEL_USER |
User Debug
|
orxDEBUG_LEVEL_NUMBER |
|
orxDEBUG_LEVEL_MAX_NUMBER |
|
orxDEBUG_LEVEL_ALL |
All Debugs
|
orxDEBUG_LEVEL_NONE |
|
Definition at line 81 of file orxDebug.h.
Enables/disables a given log level
- Parameters
-
[in] | _eLevel | Debug level to enable/disable |
[in] | _bEnable | Enable / disable |
Exits from the debug module
orxDLLAPI orxU32 orxFASTCALL _orxDebug_GetFlags |
( |
| ) |
|
Gets current debug flags
- Returns
- Current debug flags
Inits the debug module
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
Is a given log level enabled?
- Parameters
-
[in] | _eLevel | Concerned debug level |
orxDLLAPI void orxCDECL _orxDebug_Log |
( |
orxDEBUG_LEVEL |
_eLevel, |
|
|
const orxSTRING |
_zFunction, |
|
|
const orxSTRING |
_zFile, |
|
|
orxU32 |
_u32Line, |
|
|
const orxSTRING |
_zFormat, |
|
|
|
... |
|
) |
| |
Logs given debug text
- Parameters
-
[in] | _eLevel | Debug level associated with this output |
[in] | _zFunction | Calling function name |
[in] | _zFile | Calling file name |
[in] | _u32Line | Calling file line |
[in] | _zFormat | Printf formatted text |
orxDLLAPI void orxFASTCALL _orxDebug_SetDebugFile |
( |
const orxSTRING |
_zFileName | ) |
|
Sets debug file name
- Parameters
-
[in] | _zFileName | Debug file name |
orxDLLAPI void orxFASTCALL _orxDebug_SetFlags |
( |
orxU32 |
_u32Add, |
|
|
orxU32 |
_u32Remove |
|
) |
| |
Sets current debug flags
- Parameters
-
[in] | _u32Add | Flags to add |
[in] | _u32Remove | Flags to remove |
Sets log callback function, if the callback returns orxSTATUS_FAILURE, the log entry will be entirely inhibited
- Parameters
-
[in] | _pfnLogCallback | Log callback function, orxNULL to remove it |
orxDLLAPI void orxFASTCALL _orxDebug_SetLogFile |
( |
const orxSTRING |
_zFileName | ) |
|
Sets log file name
- Parameters
-
[in] | _zFileName | Log file name |