We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b3f40a commit 61557eaCopy full SHA for 61557ea
gumbo-parser/src/util.c
@@ -63,6 +63,4 @@ void gumbo_debug(const char* format, ...) {
63
va_end(args);
64
fflush(stdout);
65
}
66
-#else
67
-void gumbo_debug(const char* UNUSED_ARG(format), ...) {}
68
#endif
gumbo-parser/src/util.h
@@ -21,7 +21,11 @@ void* gumbo_realloc(void* ptr, size_t size) RETURNS_NONNULL;
21
void gumbo_free(void* ptr);
22
23
// Debug wrapper for printf
24
+#ifdef GUMBO_DEBUG
25
void gumbo_debug(const char* format, ...) PRINTF(1);
26
+#else
27
+static inline void PRINTF(1) gumbo_debug(const char* UNUSED_ARG(format), ...) {};
28
+#endif
29
30
#ifdef __cplusplus
31
0 commit comments