52#define STRING_IT(a) #a
53#define TOKEN_IT(a) STRING_IT(,##a)
54#define MESSAGE(a) message (__FILE__ "(" TOKEN_IT(__LINE__) ") : " a)
89void WWDebug_Assert_Fail(
const char * expr,
const char * file,
int line);
90void WWDebug_Assert_Fail_Print(
const char * expr,
const char * file,
int line,
const char *
string);
98void WWDebug_DBWin32_Message_Handler(
const char * message);
108#include "..\..\..\..\gameengine\include\common\debug.h"
111#define WWDEBUG_SAY(x) DEBUG_LOG(x)
112#define WWDEBUG_WARNING(x) DEBUG_LOG(x)
114#define WWDEBUG_SAY(x)
115#define WWDEBUG_WARNING(x)
120#pragma warning(disable:4127)
121#define WWRELEASE_SAY(x) WWDebug_Printf x
122#define WWRELEASE_WARNING(x) WWDebug_Printf_Warning x
123#define WWRELEASE_ERROR(x) WWDebug_Printf_Error x
129#define WWASSERT(expr) DEBUG_ASSERTCRASH(expr, ("%s, %s, %d", #expr,__FILE__,__LINE__))
130#define WWASSERT_PRINT( expr, string ) DEBUG_ASSERTCRASH(expr, ("%s, %s, %d - %s", #expr,__FILE__,__LINE__,string))
131#define W3D_DIE DEBUG_CRASH(("DIE!, %s, %d", __FILE__,__LINE__))
132#define WWDEBUG_ERROR(x) DEBUG_CRASH(x)
134#define WWASSERT( expr )
135#define WWASSERT_PRINT( expr, string )
137#define WWDEBUG_ERROR(x)
145#define WWDEBUG_BREAK _asm int 0x03
147#define WWDEBUG_BREAK _asm int 0x03
155#define WWDEBUG_TRIGGER_GENERIC0 0
156#define WWDEBUG_TRIGGER_GENERIC1 1
159#define WWDEBUG_TRIGGER(x) WWDebug_Check_Trigger(x)
161#define WWDEBUG_TRIGGER(x) (0)
169#define WWDEBUG_PROFILE_START(x) WWDebug_Profile_Start(x)
170#define WWDEBUG_PROFILE_STOP(x) WWDebug_Profile_Stop(x)
172#define WWDEBUG_PROFILE_START(x)
173#define WWDEBUG_PROFILE_STOP(x)
void WWDebug_Profile_Stop(const char *title)
bool WWDebug_Check_Trigger(int trigger_num)
void WWDebug_Profile_Start(const char *title)
@ WWDEBUG_TYPE_INFORMATION
ProfileFunc WWDebug_Install_Profile_Stop_Handler(ProfileFunc func)
void(* ProfileFunc)(const char *title)
TriggerFunc WWDebug_Install_Trigger_Handler(TriggerFunc func)
void(* PrintFunc)(DebugType type, const char *message)
void WWDebug_Printf_Warning(const char *format,...)
bool(* TriggerFunc)(int trigger_num)
ProfileFunc WWDebug_Install_Profile_Start_Handler(ProfileFunc func)
void Convert_System_Error_To_String(int error_id, char *buffer, int buf_len)
PrintFunc WWDebug_Install_Message_Handler(PrintFunc func)
AssertPrintFunc WWDebug_Install_Assert_Handler(AssertPrintFunc func)
void WWDebug_Printf(const char *format,...)
int Get_Last_System_Error()
void WWDebug_Printf_Error(const char *format,...)
void(* AssertPrintFunc)(const char *message)