5#ifndef SPA_DEBUG_FILE_H
6#define SPA_DEBUG_FILE_H
40 vfprintf(c->
f, fmt, args); fputc(
'\n', c->
f);
44#define SPA_DEBUG_FILE_INIT(_f) \
45 (struct spa_debug_file_ctx){ { spa_debug_file_log }, _f, }
47#define spa_debug_file_error_location(f,loc,fmt,...) \
49 struct spa_debug_file_ctx c = SPA_DEBUG_FILE_INIT(f); \
50 if (fmt) spa_debugc(&c.ctx, fmt, __VA_ARGS__); \
51 spa_debugc_error_location(&c.ctx, loc); \
static void spa_debug_file_log(struct spa_debug_context *ctx, const char *fmt,...)
Definition file.h:40
#define SPA_CONTAINER_OF(p, t, m)
Definition defs.h:235
#define SPA_PRINTF_FUNC(fmt, arg1)
Definition defs.h:295
FILE * f
Definition file.h:36
struct spa_debug_context ctx
Definition file.h:35