/* 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