aboutsummaryrefslogtreecommitdiff
path: root/src/espik_debug.h
blob: 06514b41028868bf5a23b114940c78971fd84f96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef HAVE_ESPIK_DEBUG_H
#define HAVE_ESPIK_DEBUG_H

#include "espik_global.h"

#ifdef __GNUC__
#define espik_debug_print(fmt, ...) \
{ \
	fprintf (stdout, "%s+%i @%s: '"fmt"'\n", __FILE__, __LINE__, __func__, ...,); \
/*	fprintf (stdout, fmt, __VA_ARGS__); \
	fprintf (stdout, "'\n"); \ */
}
#else
#define espik_debug_print(fmt, ...) \
{ \
}
#endif	/* __GNUC__ */

inline void espik_bt (void);
void espik_debug_init();
void kill_me (short num);

#endif	/* HAVE_ESPIK_DEBUG_H */