diff options
Diffstat (limited to 'include/debug.h')
-rw-r--r-- | include/debug.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/debug.h b/include/debug.h new file mode 100644 index 0000000..29434be --- /dev/null +++ b/include/debug.h @@ -0,0 +1,18 @@ +/* + * Debugging utilities. + * Copyright (c) 2023-2024, Quinn Stephens and the OSMORA team. + * Provided under the BSD 3-Clause license. + */ + +#ifndef _DEBUG_H +#define _DEBUG_H + +void __debug(const char *fmt, ...); + +#if defined(ENABLE_DEBUG) +#define debug __debug +#else +#define debug(fmt, ...) +#endif + +#endif /* !_DEBUG_H */ |