blob: 22d7c7bc4f1b77f3834b461f7dc6d6fcd18452b9 (
plain) (
tree)
|
|
#ifndef HAVE_ESPIK_DEBUG_H
#define HAVE_ESPIK_DEBUG_H
#include "espik_global.h"
#define DEBUG_FILENO stderr
#ifdef _ESPIK_DEBUG_
#ifdef __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 /* __GNUC__ */
#define espik_debug_print(fmt, ...) \
{ \
}
#endif /* __GNUC__ */
#else /* _ESPIK_DEBUG_ */
#define espik_debug_print(fmt, ...) \
{ \
}
#endif /* _ESPIK_DEBUG_ */
inline void espik_bt (void);
void espik_debug_init();
void kill_me (short num);
#endif /* HAVE_ESPIK_DEBUG_H */
|