debug.h File Reference

Debug-header. More...

Detailed Description

Debug-header.

If ENABLE_DEBUG is defined inside an implementation file, all calls to DEBUG will work the same as printf and output the given information to stdout. If ENABLE_DEBUG is not defined, all calls to DEBUG will be ignored.

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

Definition in file debug.h.

#include <stdio.h>
#include "sched.h"
#include "thread.h"
#include "cpu_conf.h"
+ Include dependency graph for debug.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG_PRINT(...)
 Print debug information if the calling thread stack is large enough. More...
 
#define DEBUG_EXTRA_STACKSIZE   THREAD_EXTRA_STACKSIZE_PRINTF
 Extra stacksize needed when ENABLE_DEBUG==1.
 
Debugging defines
#define DEBUG_FUNC   ""
 Contains the function name if given compiler supports it. More...
 
#define DEBUG(...)   DEBUG_PRINT(__VA_ARGS__)
 Print debug information to stdout. More...