EEEN21000
GROUP 30 Line Following Buggy
Loading...
Searching...
No Matches
debug1.h File Reference
#include <cstdio>
Include dependency graph for debug1.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _DEBUG   0
 
#define DEBUGLOG(x, ...)
 
#define ERROR(...)
 

Macro Definition Documentation

◆ _DEBUG

#define _DEBUG   0

◆ DEBUGLOG

#define DEBUGLOG (   x,
  ... 
)
Value:
do { if (_DEBUG) { \
printf("[LOG] %s %s(): " x, \
__FILE__, __func__, ##__VA_ARGS__); \
fflush(stdout); }} while (0)
#define _DEBUG
Definition: debug1.h:12

◆ ERROR

#define ERROR (   ...)
Value:
do { if (_DEBUG) { \
fprintf(stderr, "[ERROR] %s %s(): %s\n", \
__FILE__, __func__, ##__VA_ARGS__); \
fflush(stdout); __builtin_abort(); \
}} while (0)