diff options
Diffstat (limited to 'src/wrapper/verbose.h')
-rw-r--r-- | src/wrapper/verbose.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/wrapper/verbose.h b/src/wrapper/verbose.h new file mode 100644 index 0000000..719edc7 --- /dev/null +++ b/src/wrapper/verbose.h @@ -0,0 +1,16 @@ +#pragma once + +#ifdef VERBOSE_FUNCTIONS +# include <stdarg.h> +static void +verbose(const char *fmt, ...) +{ + va_list ap; + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); + fputc('\n', stderr); +} +#else +# define verbose(...) +#endif |