libmya 0.1.0
Library to parse Mya language.
Loading...
Searching...
No Matches
debug.h File Reference
#include <stdio.h>
#include "colors.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 DPRINTF(level, fmt, ...)
 
#define DPRINTF1(fmt, ...)
 
#define DEBUG_IF(expr, code)
 
#define DPRINTF2(fmt, ...)
 
#define DPRINTF3(fmt, ...)
 

Macro Definition Documentation

◆ DEBUG_IF

#define DEBUG_IF ( expr,
code )

Definition at line 17 of file debug.h.

◆ DPRINTF

#define DPRINTF ( level,
fmt,
... )
Value:
fprintf(stderr, "[" C_BLUE "DEBUG " C_GREEN #level C_NORMAL "] " fmt, __VA_ARGS__)
#define C_BLUE
Definition colors.h:19
#define C_GREEN
Definition colors.h:17
#define C_NORMAL
Definition colors.h:14

Definition at line 7 of file debug.h.

◆ DPRINTF1

#define DPRINTF1 ( fmt,
... )

Definition at line 16 of file debug.h.

◆ DPRINTF2

#define DPRINTF2 ( fmt,
... )

Definition at line 23 of file debug.h.

◆ DPRINTF3

#define DPRINTF3 ( fmt,
... )

Definition at line 29 of file debug.h.