blob: dca4f5f4cad9bcc085d0a53f64bb75ed44527755 (
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
24
25
|
#ifndef HAVE_ESPIK_DEBUG_H
#define HAVE_ESPIK_DEBUG_H
#include "espik_global.h"
#define DEBUG_FILENO stderr
#if defined (_ESPIK_DEBUG_) && defined (__GNUC__)
#define espik_debug_print(fmt, ...) \
{ \
fprintf (DEBUG_FILENO, "%s+%i @%s: '", __FILE__, __LINE__, __func__); \
fprintf (DEBUG_FILENO, fmt, ##__VA_ARGS__); \
fprintf (DEBUG_FILENO, "'\n"); \
}
#else
#define espik_debug_print(fmt, ...) \
{ \
}
#endif /* _ESPIK_DEBUG_ && __GNUC__ */
inline void espik_bt (void);
void espik_debug_init();
void kill_me (short num);
#endif /* HAVE_ESPIK_DEBUG_H */
|