Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
wwdebug.h File Reference
#include "..\..\..\..\gameengine\include\common\debug.h"

Go to the source code of this file.

Macros

#define WWDEBUG_H
 
#define STRING_IT(a)
 
#define TOKEN_IT(a)
 
#define MESSAGE(a)
 
#define WWDEBUG_SAY(x)
 
#define WWDEBUG_WARNING(x)
 
#define WWRELEASE_SAY(x)
 
#define WWRELEASE_WARNING(x)
 
#define WWRELEASE_ERROR(x)
 
#define WWASSERT(expr)
 
#define WWASSERT_PRINT(expr, string)
 
#define W3D_DIE
 
#define WWDEBUG_ERROR(x)
 
#define WWDEBUG_BREAK   _asm int 0x03
 
#define WWDEBUG_TRIGGER_GENERIC0   0
 
#define WWDEBUG_TRIGGER_GENERIC1   1
 
#define WWDEBUG_TRIGGER(x)
 
#define WWDEBUG_PROFILE_START(x)
 
#define WWDEBUG_PROFILE_STOP(x)
 

Typedefs

typedef void(* PrintFunc) (DebugType type, const char *message)
 
typedef void(* AssertPrintFunc) (const char *message)
 
typedef bool(* TriggerFunc) (int trigger_num)
 
typedef void(* ProfileFunc) (const char *title)
 

Enumerations

enum  DebugType { WWDEBUG_TYPE_INFORMATION , WWDEBUG_TYPE_WARNING , WWDEBUG_TYPE_ERROR , WWDEBUG_TYPE_USER }
 

Functions

void Convert_System_Error_To_String (int error_id, char *buffer, int buf_len)
 
int Get_Last_System_Error ()
 
PrintFunc WWDebug_Install_Message_Handler (PrintFunc func)
 
AssertPrintFunc WWDebug_Install_Assert_Handler (AssertPrintFunc func)
 
TriggerFunc WWDebug_Install_Trigger_Handler (TriggerFunc func)
 
ProfileFunc WWDebug_Install_Profile_Start_Handler (ProfileFunc func)
 
ProfileFunc WWDebug_Install_Profile_Stop_Handler (ProfileFunc func)
 
void WWDebug_Printf (const char *format,...)
 
void WWDebug_Printf_Warning (const char *format,...)
 
void WWDebug_Printf_Error (const char *format,...)
 

Macro Definition Documentation

◆ MESSAGE

#define MESSAGE ( a)
Value:
message (__FILE__ "(" TOKEN_IT(__LINE__) ") : " a)
#define TOKEN_IT(a)
Definition Debug.h:69

Definition at line 54 of file wwdebug.h.

◆ STRING_IT

#define STRING_IT ( a)
Value:
#a

Definition at line 52 of file wwdebug.h.

◆ TOKEN_IT

#define TOKEN_IT ( a)
Value:
STRING_IT(,##a)
#define STRING_IT(a)
Definition Debug.h:68

Definition at line 53 of file wwdebug.h.

◆ W3D_DIE

#define W3D_DIE

Definition at line 136 of file wwdebug.h.

◆ WWASSERT

#define WWASSERT ( expr)

Definition at line 134 of file wwdebug.h.

◆ WWASSERT_PRINT

#define WWASSERT_PRINT ( expr,
string )

Definition at line 135 of file wwdebug.h.

◆ WWDEBUG_BREAK

#define WWDEBUG_BREAK   _asm int 0x03

Definition at line 147 of file wwdebug.h.

◆ WWDEBUG_ERROR

#define WWDEBUG_ERROR ( x)

Definition at line 137 of file wwdebug.h.

◆ WWDEBUG_H

#define WWDEBUG_H

Definition at line 42 of file wwdebug.h.

◆ WWDEBUG_PROFILE_START

#define WWDEBUG_PROFILE_START ( x)

Definition at line 172 of file wwdebug.h.

◆ WWDEBUG_PROFILE_STOP

#define WWDEBUG_PROFILE_STOP ( x)

Definition at line 173 of file wwdebug.h.

◆ WWDEBUG_SAY

#define WWDEBUG_SAY ( x)

Definition at line 114 of file wwdebug.h.

◆ WWDEBUG_TRIGGER

#define WWDEBUG_TRIGGER ( x)
Value:
(0)

Definition at line 161 of file wwdebug.h.

◆ WWDEBUG_TRIGGER_GENERIC0

#define WWDEBUG_TRIGGER_GENERIC0   0

Definition at line 155 of file wwdebug.h.

◆ WWDEBUG_TRIGGER_GENERIC1

#define WWDEBUG_TRIGGER_GENERIC1   1

Definition at line 156 of file wwdebug.h.

◆ WWDEBUG_WARNING

#define WWDEBUG_WARNING ( x)

Definition at line 115 of file wwdebug.h.

◆ WWRELEASE_ERROR

#define WWRELEASE_ERROR ( x)
Value:
void WWDebug_Printf_Error(const char *format,...)
Definition wwdebug.cpp:258

Definition at line 123 of file wwdebug.h.

◆ WWRELEASE_SAY

#define WWRELEASE_SAY ( x)
Value:
void WWDebug_Printf(const char *format,...)
Definition wwdebug.cpp:198

Definition at line 121 of file wwdebug.h.

◆ WWRELEASE_WARNING

#define WWRELEASE_WARNING ( x)
Value:
void WWDebug_Printf_Warning(const char *format,...)
Definition wwdebug.cpp:228

Definition at line 122 of file wwdebug.h.

Typedef Documentation

◆ AssertPrintFunc

typedef void(* AssertPrintFunc) (const char *message)

Definition at line 71 of file wwdebug.h.

◆ PrintFunc

typedef void(* PrintFunc) (DebugType type, const char *message)

Definition at line 70 of file wwdebug.h.

◆ ProfileFunc

typedef void(* ProfileFunc) (const char *title)

Definition at line 73 of file wwdebug.h.

◆ TriggerFunc

typedef bool(* TriggerFunc) (int trigger_num)

Definition at line 72 of file wwdebug.h.

Enumeration Type Documentation

◆ DebugType

enum DebugType
Enumerator
WWDEBUG_TYPE_INFORMATION 
WWDEBUG_TYPE_WARNING 
WWDEBUG_TYPE_ERROR 
WWDEBUG_TYPE_USER 

Definition at line 63 of file wwdebug.h.

Function Documentation

◆ Convert_System_Error_To_String()

void Convert_System_Error_To_String ( int error_id,
char * buffer,
int buf_len )

Definition at line 66 of file wwdebug.cpp.

◆ Get_Last_System_Error()

int Get_Last_System_Error ( )

Definition at line 80 of file wwdebug.cpp.

◆ WWDebug_Install_Assert_Handler()

AssertPrintFunc WWDebug_Install_Assert_Handler ( AssertPrintFunc func)

Definition at line 117 of file wwdebug.cpp.

◆ WWDebug_Install_Message_Handler()

PrintFunc WWDebug_Install_Message_Handler ( PrintFunc func)

Definition at line 97 of file wwdebug.cpp.

◆ WWDebug_Install_Profile_Start_Handler()

ProfileFunc WWDebug_Install_Profile_Start_Handler ( ProfileFunc func)

Definition at line 157 of file wwdebug.cpp.

◆ WWDebug_Install_Profile_Stop_Handler()

ProfileFunc WWDebug_Install_Profile_Stop_Handler ( ProfileFunc func)

Definition at line 177 of file wwdebug.cpp.

◆ WWDebug_Install_Trigger_Handler()

TriggerFunc WWDebug_Install_Trigger_Handler ( TriggerFunc func)

Definition at line 137 of file wwdebug.cpp.

◆ WWDebug_Printf()

void WWDebug_Printf ( const char * format,
... )

Definition at line 198 of file wwdebug.cpp.

◆ WWDebug_Printf_Error()

void WWDebug_Printf_Error ( const char * format,
... )

Definition at line 258 of file wwdebug.cpp.

◆ WWDebug_Printf_Warning()

void WWDebug_Printf_Warning ( const char * format,
... )

Definition at line 228 of file wwdebug.cpp.