summaryrefslogtreecommitdiffstats
path: root/liblog_vlog_cork.c
blob: fd191d3633a3eacc34e4b3f9d18f8351c451b5ff (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
26
27
28
/* See LICENSE file for copyright and license details. */
#ifndef TEST

# ifdef USE_EXTERN_INLINE
#  include "common.h"

extern inline int liblog_vlog_cork(struct liblog_context *, enum liblog_level, const char *, va_list);

# else
#  define liblog_vlog_cork liblog__dont_want__
#  include "common.h"
#  undef liblog_vlog_cork
#  if defined(__GNUC__)
#   pragma GCC diagnostic ignored "-Wformat-nonliteral"
#  endif

LIBLOG_VPRINTF__(3) int
liblog_vlog_cork(struct liblog_context *ctx, enum liblog_level level, const char *fmt, va_list args)
{ return liblog_xlog(ctx, level, LIBLOG_XLOG_CORK | XLOG_NOT_INLINE, fmt, args); }

# endif

#else
# include "common.h"

int main(void) {return 0;} /* TODO test */

#endif