100#define RAVE_SPEWDEBUG0(msg) \
101Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_SPEWDEBUG,msg)
106#define RAVE_SPEWDEBUG1(msg,arg1) \
107Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_SPEWDEBUG,msg,arg1)
109#define RAVE_SPEWDEBUG2(msg,arg1,arg2) \
110Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_SPEWDEBUG,msg,arg1,arg2)
112#define RAVE_SPEWDEBUG3(msg,arg1,arg2,arg3) \
113Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_SPEWDEBUG,msg,arg1,arg2,arg3)
115#define RAVE_SPEWDEBUG4(msg,arg1,arg2,arg3,arg4) \
116Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_SPEWDEBUG,msg,arg1,arg2,arg3,arg4)
118#define RAVE_DEBUG0(msg) \
119Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg)
121#define RAVE_DEBUG1(msg,arg1) \
122Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg,arg1)
124#define RAVE_DEBUG2(msg,arg1,arg2) \
125Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg,arg1,arg2)
127#define RAVE_DEBUG3(msg,arg1,arg2,arg3) \
128Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg,arg1,arg2,arg3)
130#define RAVE_DEBUG4(msg,arg1,arg2,arg3,arg4) \
131Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg,arg1,arg2,arg3,arg4)
133#define RAVE_DEBUG7(msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7) \
134Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
136#define RAVE_DEPRECATED0(msg) \
137Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEPRECATED,msg)
139#define RAVE_DEPRECATED1(msg,arg1) \
140Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEPRECATED,msg,arg1)
142#define RAVE_DEPRECATED2(msg,arg1,arg2) \
143Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEPRECATED,msg,arg1,arg2)
145#define RAVE_DEPRECATED3(msg,arg1,arg2,arg3) \
146Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEPRECATED,msg,arg1,arg2,arg3)
148#define RAVE_DEPRECATED4(msg,arg1,arg2,arg3,arg4) \
149Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEPRECATED,msg,arg1,arg2,arg3,arg4)
151#define RAVE_INFO0(msg) \
152Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg)
154#define RAVE_INFO1(msg,arg1) \
155Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1)
157#define RAVE_INFO2(msg,arg1,arg2) \
158Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2)
160#define RAVE_INFO3(msg,arg1,arg2,arg3) \
161Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3)
163#define RAVE_INFO4(msg,arg1,arg2,arg3,arg4) \
164Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3,arg4)
166#define RAVE_INFO7(msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7) \
167Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
169#define RAVE_WARNING0(msg) \
170Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg)
172#define RAVE_WARNING1(msg,arg1) \
173Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1)
175#define RAVE_WARNING2(msg,arg1,arg2) \
176Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2)
178#define RAVE_WARNING3(msg,arg1,arg2,arg3) \
179Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2,arg3)
181#define RAVE_WARNING4(msg,arg1,arg2,arg3,arg4) \
182Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2,arg3,arg4)
184#define RAVE_ERROR0(msg) \
185Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg)
187#define RAVE_ERROR1(msg,arg1) \
188Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1)
190#define RAVE_ERROR2(msg,arg1,arg2) \
191Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2)
193#define RAVE_ERROR3(msg,arg1,arg2,arg3) \
194Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3)
196#define RAVE_ERROR4(msg,arg1,arg2,arg3,arg4) \
197Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3,arg4)
199#define RAVE_ERROR5(msg,arg1,arg2,arg3,arg4,arg5) \
200Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3,arg4,arg5)
202#define RAVE_CRITICAL0(msg) \
203Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg)
205#define RAVE_CRITICAL1(msg,arg1) \
206Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1)
208#define RAVE_CRITICAL2(msg,arg1,arg2) \
209Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2)
211#define RAVE_CRITICAL3(msg,arg1,arg2,arg3) \
212Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3)
214#define RAVE_CRITICAL4(msg,arg1,arg2,arg3,arg4) \
215Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3,arg4)
217#define RAVE_ASSERT(expr, msg) \
219Rave_getDebugFunction()(__FILE__, __LINE__, RAVE_CRITICAL, msg); \
223#define RAVE_ABORT() abort()
227#define RAVE_SPEWDEBUG0(msg)
230#define RAVE_SPEWDEBUG1(msg,arg1)
233#define RAVE_SPEWDEBUG2(msg,arg1,arg2)
236#define RAVE_SPEWDEBUG3(msg,arg1,arg2,arg3)
239#define RAVE_SPEWDEBUG4(msg,arg1,arg2,arg3,arg4)
242#define RAVE_DEBUG0(msg)
245#define RAVE_DEBUG1(msg,arg1)
248#define RAVE_DEBUG2(msg,arg1,arg2)
251#define RAVE_DEBUG3(msg,arg1,arg2,arg3)
254#define RAVE_DEBUG4(msg,arg1,arg2,arg3,arg4)
257#define RAVE_DEBUG7(msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
260#define RAVE_DEPRECATED0(msg)
263#define RAVE_DEPRECATED1(msg,arg1)
266#define RAVE_DEPRECATED2(msg,arg1,arg2)
269#define RAVE_DEPRECATED3(msg,arg1,arg2,arg3)
272#define RAVE_DEPRECATED4(msg,arg1,arg2,arg3,arg4)
275#define RAVE_INFO0(msg) \
276Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg)
279#define RAVE_INFO1(msg,arg1) \
280Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1)
283#define RAVE_INFO2(msg,arg1,arg2) \
284Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2)
287#define RAVE_INFO3(msg,arg1,arg2,arg3) \
288Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3)
291#define RAVE_INFO4(msg,arg1,arg2,arg3,arg4) \
292Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3,arg4)
295#define RAVE_INFO7(msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7) \
296Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
299#define RAVE_WARNING0(msg) \
300Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg)
303#define RAVE_WARNING1(msg,arg1) \
304Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1)
307#define RAVE_WARNING2(msg,arg1,arg2) \
308Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2)
311#define RAVE_WARNING3(msg,arg1,arg2,arg3) \
312Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2,arg3)
315#define RAVE_WARNING4(msg,arg1,arg2,arg3,arg4) \
316Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2,arg3,arg4)
319#define RAVE_ERROR0(msg) \
320Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg)
323#define RAVE_ERROR1(msg,arg1) \
324Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1)
327#define RAVE_ERROR2(msg,arg1,arg2) \
328Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2)
331#define RAVE_ERROR3(msg,arg1,arg2,arg3) \
332Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3)
335#define RAVE_ERROR4(msg,arg1,arg2,arg3,arg4) \
336Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3,arg4)
338#define RAVE_ERROR5(msg,arg1,arg2,arg3,arg4,arg5) \
339Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3,arg4,arg5)
342#define RAVE_CRITICAL0(msg) \
343Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg)
346#define RAVE_CRITICAL1(msg,arg1) \
347Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1)
350#define RAVE_CRITICAL2(msg,arg1,arg2) \
351Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2)
354#define RAVE_CRITICAL3(msg,arg1,arg2,arg3) \
355Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3)
358#define RAVE_CRITICAL4(msg,arg1,arg2,arg3,arg4) \
359Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3,arg4)
363#define RAVE_ASSERT(expr, msg)
368#define RAVE_ASSERT(expr, msg) \
370Rave_getDebugFunction()(__FILE__, __LINE__, RAVE_CRITICAL, msg); \
373#define RAVE_ABORT() abort()
rave_dbgfun Rave_getDebugFunction(void)
Definition rave_debug.c:144
Rave_Debug Rave_getDebugLevel(void)
Definition rave_debug.c:132
void Rave_setDebugLevel(Rave_Debug lvl)
Sets the debug level.
Definition rave_debug.c:124
void(* rave_dbgfun)(const char *filename, int lineno, Rave_Debug lvl, const char *fmt,...)
The debugger function.
Definition rave_debug.h:53
void Rave_initializeDebugger(void)
Initializes the debugger structure, must have been called before executing the code.
Definition rave_debug.c:115
void Rave_printf(const char *fmt,...)
The printer function.
Definition rave_debug.c:42
Rave_Debug
Debug levels.
Definition rave_debug.h:34
@ RAVE_CRITICAL
If this occurs, then something has gone very wrong or the code contains a bug, please report it to th...
Definition rave_debug.h:41
@ RAVE_ERROR
Errors can be when memory not could be allocated or a file not could be created.
Definition rave_debug.h:40
@ RAVE_INFO
Informational messages.
Definition rave_debug.h:38
@ RAVE_WARNING
Warnings.
Definition rave_debug.h:39
@ RAVE_SILENT
Turns of debugging.
Definition rave_debug.h:42
@ RAVE_DEBUG
Basic debug functions.
Definition rave_debug.h:36
@ RAVE_DEPRECATED
Print outs deprecated warnings.
Definition rave_debug.h:37
@ RAVE_SPEWDEBUG
The most verbose printouts is turned on here.
Definition rave_debug.h:35
void Rave_setDebugFunction(rave_dbgfun dbgfun)
Sets the debug function where the debug printouts should be routed.
Definition rave_debug.c:138