config: Introduce DEBUG_CONFIG macro for debug output of config

This commit is contained in:
Tim Ruffing committed 2022-07-07 20:32:08 +02:00
1 parent d0cf55e13a
commit da6514a04a
3 files changed
+22

No files matched your search

+5
View File
@@ -16,6 +16,11 @@
#include <stdio.h>
#include <limits.h>
#define STR_(x) #x
#define STR(x) STR_(x)
#define DEBUG_CONFIG_MSG(x) "DEBUG_CONFIG: " x
#define DEBUG_CONFIG_DEF(x) DEBUG_CONFIG_MSG(#x "=" STR(x))
typedef struct {
void (*fn)(const char *text, void* data);
const void* data;