70void Rave_printf(
const char* fmt, ...);
76void Rave_initializeDebugger(
void);
96void Rave_setLogLevel(
const char* lvl);
101const char* Rave_getLogLevel(
void);
119void Rave_setLogOutputStderr(
void);
153#define RAVE_SPEWDEBUG0(msg) \
154Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_SPEWDEBUG,msg)
159#define RAVE_SPEWDEBUG1(msg,arg1) \
160Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_SPEWDEBUG,msg,arg1)
162#define RAVE_SPEWDEBUG2(msg,arg1,arg2) \
163Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_SPEWDEBUG,msg,arg1,arg2)
165#define RAVE_SPEWDEBUG3(msg,arg1,arg2,arg3) \
166Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_SPEWDEBUG,msg,arg1,arg2,arg3)
168#define RAVE_SPEWDEBUG4(msg,arg1,arg2,arg3,arg4) \
169Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_SPEWDEBUG,msg,arg1,arg2,arg3,arg4)
171#define RAVE_DEBUG0(msg) \
172Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg)
174#define RAVE_DEBUG1(msg,arg1) \
175Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg,arg1)
177#define RAVE_DEBUG2(msg,arg1,arg2) \
178Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg,arg1,arg2)
180#define RAVE_DEBUG3(msg,arg1,arg2,arg3) \
181Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg,arg1,arg2,arg3)
183#define RAVE_DEBUG4(msg,arg1,arg2,arg3,arg4) \
184Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg,arg1,arg2,arg3,arg4)
186#define RAVE_DEBUG7(msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7) \
187Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEBUG,msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
189#define RAVE_DEPRECATED0(msg) \
190Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEPRECATED,msg)
192#define RAVE_DEPRECATED1(msg,arg1) \
193Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEPRECATED,msg,arg1)
195#define RAVE_DEPRECATED2(msg,arg1,arg2) \
196Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEPRECATED,msg,arg1,arg2)
198#define RAVE_DEPRECATED3(msg,arg1,arg2,arg3) \
199Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEPRECATED,msg,arg1,arg2,arg3)
201#define RAVE_DEPRECATED4(msg,arg1,arg2,arg3,arg4) \
202Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_DEPRECATED,msg,arg1,arg2,arg3,arg4)
204#define RAVE_INFO0(msg) \
205Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg)
207#define RAVE_INFO1(msg,arg1) \
208Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1)
210#define RAVE_INFO2(msg,arg1,arg2) \
211Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2)
213#define RAVE_INFO3(msg,arg1,arg2,arg3) \
214Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3)
216#define RAVE_INFO4(msg,arg1,arg2,arg3,arg4) \
217Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3,arg4)
219#define RAVE_INFO7(msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7) \
220Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
222#define RAVE_WARNING0(msg) \
223Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg)
225#define RAVE_WARNING1(msg,arg1) \
226Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1)
228#define RAVE_WARNING2(msg,arg1,arg2) \
229Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2)
231#define RAVE_WARNING3(msg,arg1,arg2,arg3) \
232Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2,arg3)
234#define RAVE_WARNING4(msg,arg1,arg2,arg3,arg4) \
235Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2,arg3,arg4)
237#define RAVE_ERROR0(msg) \
238Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg)
240#define RAVE_ERROR1(msg,arg1) \
241Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1)
243#define RAVE_ERROR2(msg,arg1,arg2) \
244Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2)
246#define RAVE_ERROR3(msg,arg1,arg2,arg3) \
247Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3)
249#define RAVE_ERROR4(msg,arg1,arg2,arg3,arg4) \
250Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3,arg4)
252#define RAVE_ERROR5(msg,arg1,arg2,arg3,arg4,arg5) \
253Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3,arg4,arg5)
255#define RAVE_CRITICAL0(msg) \
256Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg)
258#define RAVE_CRITICAL1(msg,arg1) \
259Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1)
261#define RAVE_CRITICAL2(msg,arg1,arg2) \
262Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2)
264#define RAVE_CRITICAL3(msg,arg1,arg2,arg3) \
265Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3)
267#define RAVE_CRITICAL4(msg,arg1,arg2,arg3,arg4) \
268Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3,arg4)
270#define RAVE_ASSERT(expr, msg) \
272Rave_getDebugFunction()(__FILE__, __LINE__, RAVE_CRITICAL, msg); \
276#define RAVE_ABORT() abort()
280#define RAVE_SPEWDEBUG0(msg)
283#define RAVE_SPEWDEBUG1(msg,arg1)
286#define RAVE_SPEWDEBUG2(msg,arg1,arg2)
289#define RAVE_SPEWDEBUG3(msg,arg1,arg2,arg3)
292#define RAVE_SPEWDEBUG4(msg,arg1,arg2,arg3,arg4)
295#define RAVE_DEBUG0(msg)
298#define RAVE_DEBUG1(msg,arg1)
301#define RAVE_DEBUG2(msg,arg1,arg2)
304#define RAVE_DEBUG3(msg,arg1,arg2,arg3)
307#define RAVE_DEBUG4(msg,arg1,arg2,arg3,arg4)
310#define RAVE_DEBUG7(msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
313#define RAVE_DEPRECATED0(msg)
316#define RAVE_DEPRECATED1(msg,arg1)
319#define RAVE_DEPRECATED2(msg,arg1,arg2)
322#define RAVE_DEPRECATED3(msg,arg1,arg2,arg3)
325#define RAVE_DEPRECATED4(msg,arg1,arg2,arg3,arg4)
328#define RAVE_INFO0(msg) \
329Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg)
332#define RAVE_INFO1(msg,arg1) \
333Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1)
336#define RAVE_INFO2(msg,arg1,arg2) \
337Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2)
340#define RAVE_INFO3(msg,arg1,arg2,arg3) \
341Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3)
344#define RAVE_INFO4(msg,arg1,arg2,arg3,arg4) \
345Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3,arg4)
348#define RAVE_INFO7(msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7) \
349Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_INFO,msg,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
352#define RAVE_WARNING0(msg) \
353Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg)
356#define RAVE_WARNING1(msg,arg1) \
357Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1)
360#define RAVE_WARNING2(msg,arg1,arg2) \
361Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2)
364#define RAVE_WARNING3(msg,arg1,arg2,arg3) \
365Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2,arg3)
368#define RAVE_WARNING4(msg,arg1,arg2,arg3,arg4) \
369Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_WARNING,msg,arg1,arg2,arg3,arg4)
372#define RAVE_ERROR0(msg) \
373Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg)
376#define RAVE_ERROR1(msg,arg1) \
377Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1)
380#define RAVE_ERROR2(msg,arg1,arg2) \
381Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2)
384#define RAVE_ERROR3(msg,arg1,arg2,arg3) \
385Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3)
388#define RAVE_ERROR4(msg,arg1,arg2,arg3,arg4) \
389Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3,arg4)
391#define RAVE_ERROR5(msg,arg1,arg2,arg3,arg4,arg5) \
392Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_ERROR,msg,arg1,arg2,arg3,arg4,arg5)
395#define RAVE_CRITICAL0(msg) \
396Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg)
399#define RAVE_CRITICAL1(msg,arg1) \
400Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1)
403#define RAVE_CRITICAL2(msg,arg1,arg2) \
404Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2)
407#define RAVE_CRITICAL3(msg,arg1,arg2,arg3) \
408Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3)
411#define RAVE_CRITICAL4(msg,arg1,arg2,arg3,arg4) \
412Rave_getDebugFunction()(__FILE__,__LINE__,RAVE_CRITICAL,msg,arg1,arg2,arg3,arg4)
416#define RAVE_ASSERT(expr, msg)
421#define RAVE_ASSERT(expr, msg) \
423Rave_getDebugFunction()(__FILE__, __LINE__, RAVE_CRITICAL, msg); \
426#define RAVE_ABORT() abort()
Rave_LogOutput
Where the default debug function should route its printouts.
Definition rave_debug.h:49
@ RAVE_LOG_OUTPUT_STDERR
Printouts go to stderr.
Definition rave_debug.h:50
@ RAVE_LOG_OUTPUT_FILE
Printouts go to a log file, see Rave_setLogOutputFile.
Definition rave_debug.h:51
@ RAVE_LOG_OUTPUT_SYSLOG
Printouts go to syslog, see Rave_setLogOutputSyslog.
Definition rave_debug.h:52
void(*) rave_dbgfun(const char *filename, int lineno, Rave_Debug lvl, const char *fmt,...)
The debugger function.
Definition rave_debug.h:63
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
int Rave_setLogOutputFile(const char *filename)
Sets the default debug function's printouts to use a log file.
Definition rave_debug.c:313
void Rave_setLogOutputSyslog(const char *logid, const char *facility)
Sets the default debug function's printouts to use syslog.
Definition rave_debug.c:332