From a515dfb3b8f8e999362db7a6b52b3104c03b750a Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 1 Nov 2024 23:46:08 -0400 Subject: Import quark sources Signed-off-by: Ian Moffett --- include/debug.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/debug.h (limited to 'include/debug.h') 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 */ -- cgit v1.2.3