blob: 04c0dd4ad837ba4e113cbdfa9ea3e3ad78d17a42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef MARK_H
#define MARK_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
void __mark(const char *fmt, ...)
__attribute__ ((__format__ (__printf__, 1, 2)));
void __mark_flush(void);
#ifdef DEBUG_MARK_LOG
#define mark(x, arg...) __mark("%s: " x, __FUNCTION__, ##arg)
#define mark_flush() __mark_flush()
#else
#define mark(x, arg...) if (0) __mark("%s: " x, __FUNCTION__, ##arg)
#define mark_flush() do { } while (0)
#endif
#endif
|