You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
253 B
12 lines
253 B
7 years ago
|
#ifndef TRACE_H_INCLUDED
|
||
|
#define TRACE_H_INCLUDED
|
||
|
|
||
|
#ifdef DEBUG
|
||
|
extern void _trace(const char *source, const char *fmt, ...);
|
||
|
#define TRACE(fmt, ...) _trace(__PRETTY_FUNCTION__,fmt,##__VA_ARGS__)
|
||
|
#else
|
||
|
#define TRACE(fmt, ...)
|
||
|
#endif
|
||
|
|
||
|
#endif
|