blob: 874e1bc7f708c44418078d8109a3c760ac93c169 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <stdio.h>
#include <stdlib.h>
#define dbg(format, ...) \
dbgl(format "\n", ## __VA_ARGS__)
#define dbgl(format, ...) \
printf(format, ## __VA_ARGS__); \
fflush(stderr)
#define err(format, ...) \
printf(format "\n", ## __VA_ARGS__); \
fflush(stderr)
#define fatal(format, ...) do{\
printf(format "\n", ## __VA_ARGS__); \
fflush(stderr); \
abort(); \
} while(0)
|