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_CRITICAL0(msg) \
200Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg)
202#define RAVE_CRITICAL1(msg,arg1) \
203Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1)
205#define RAVE_CRITICAL2(msg,arg1,arg2) \
206Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2)
208#define RAVE_CRITICAL3(msg,arg1,arg2,arg3) \
209Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3)
211#define RAVE_CRITICAL4(msg,arg1,arg2,arg3,arg4) \
212Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3,arg4)
214#define RAVE_ASSERT(expr, msg) \
216Rave_getDebugFunction()(__FILE__, __LINE__, RAVE_CRITICAL, msg); \
220#define RAVE_ABORT() abort()
224#define RAVE_SPEWDEBUG0(msg)
227#define RAVE_SPEWDEBUG1(msg,arg1)
230#define RAVE_SPEWDEBUG2(msg,arg1,arg2)
233#define RAVE_SPEWDEBUG3(msg,arg1,arg2,arg3)
236#define RAVE_SPEWDEBUG4(msg,arg1,arg2,arg3,arg4)
239#define RAVE_DEBUG0(msg)
242#define RAVE_DEBUG1(msg,arg1)
245#define RAVE_DEBUG2(msg,arg1,arg2)
248#define RAVE_DEBUG3(msg,arg1,arg2,arg3)
251#define RAVE_DEBUG4(msg,arg1,arg2,arg3,arg4)
254#define RAVE_DEBUG7(msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
257#define RAVE_DEPRECATED0(msg)
260#define RAVE_DEPRECATED1(msg,arg1)
263#define RAVE_DEPRECATED2(msg,arg1,arg2)
266#define RAVE_DEPRECATED3(msg,arg1,arg2,arg3)
269#define RAVE_DEPRECATED4(msg,arg1,arg2,arg3,arg4)
272#define RAVE_INFO0(msg) \
273Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg)
276#define RAVE_INFO1(msg,arg1) \
277Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1)
280#define RAVE_INFO2(msg,arg1,arg2) \
281Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2)
284#define RAVE_INFO3(msg,arg1,arg2,arg3) \
285Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3)
288#define RAVE_INFO4(msg,arg1,arg2,arg3,arg4) \
289Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3,arg4)
292#define RAVE_INFO7(msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7) \
293Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
296#define RAVE_WARNING0(msg) \
297Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg)
300#define RAVE_WARNING1(msg,arg1) \
301Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1)
304#define RAVE_WARNING2(msg,arg1,arg2) \
305Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2)
308#define RAVE_WARNING3(msg,arg1,arg2,arg3) \
309Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2,arg3)
312#define RAVE_WARNING4(msg,arg1,arg2,arg3,arg4) \
313Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2,arg3,arg4)
316#define RAVE_ERROR0(msg) \
317Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg)
320#define RAVE_ERROR1(msg,arg1) \
321Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1)
324#define RAVE_ERROR2(msg,arg1,arg2) \
325Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2)
328#define RAVE_ERROR3(msg,arg1,arg2,arg3) \
329Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3)
332#define RAVE_ERROR4(msg,arg1,arg2,arg3,arg4) \
333Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3,arg4)
336#define RAVE_CRITICAL0(msg) \
337Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg)
340#define RAVE_CRITICAL1(msg,arg1) \
341Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1)
344#define RAVE_CRITICAL2(msg,arg1,arg2) \
345Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2)
348#define RAVE_CRITICAL3(msg,arg1,arg2,arg3) \
349Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3)
352#define RAVE_CRITICAL4(msg,arg1,arg2,arg3,arg4) \
353Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3,arg4)
357#define RAVE_ASSERT(expr, msg)
362#define RAVE_ASSERT(expr, msg) \
364Rave_getDebugFunction()(__FILE__, __LINE__, RAVE_CRITICAL, msg); \
367#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