Quash Shell  0.1
A simple yet powerfull shell program
 All Classes Files Functions Variables Typedefs Enumerations Macros
debug.h
Go to the documentation of this file.
1 
7 #include <stdio.h>
8 
27 #ifdef DEBUG
28 # define PRINT_DEBUG(fmt, ...) \
29  fprintf(stderr, "DEBUG: %s(), %s:%d: " fmt, \
30  __func__, __FILE__, __LINE__, ##__VA_ARGS__)
31 # define IFDEBUG(x) x
32 #else
33 // Does nothing
34 # define PRINT_DEBUG(fmt, ...)
35 // Does nothing
36 # define IFDEBUG(x)
37 #endif
38