summaryrefslogtreecommitdiffstats
path: root/liblog_vlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'liblog_vlog.c')
-rw-r--r--liblog_vlog.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/liblog_vlog.c b/liblog_vlog.c
new file mode 100644
index 0000000..7396fc1
--- /dev/null
+++ b/liblog_vlog.c
@@ -0,0 +1,25 @@
+/* See LICENSE file for copyright and license details. */
+#ifndef TEST
+
+# ifdef USE_EXTERN_INLINE
+# include "common.h"
+
+extern inline int liblog_vlog(struct liblog_context *, enum liblog_level, const char *, va_list);
+
+# else
+# define liblog_vlog liblog__dont_want__
+# include "common.h"
+# undef liblog_vlog
+
+LIBLOG_VPRINTF__(3) int
+liblog_vlog(struct liblog_context *ctx, enum liblog_level level, const char *fmt, va_list args)
+{ return liblog_vxlog(ctx, level, XLOG_NOT_INLINE, fmt, args); }
+
+# endif
+
+#else
+# include "common.h"
+
+int main(void) {return 0;} /* TODO test */
+
+#endif