From e35cff6d299a07d9b34f303717083a9299a37e82 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 28 Aug 2023 15:16:12 +0100 Subject: Initial import --- include/ubox_debug.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/ubox_debug.h (limited to 'include/ubox_debug.h') diff --git a/include/ubox_debug.h b/include/ubox_debug.h new file mode 100644 index 0000000..686671e --- /dev/null +++ b/include/ubox_debug.h @@ -0,0 +1,12 @@ +#ifndef _UBOX_DEBUG_H +#define _UBOX_DEBUG_H + +#ifdef DEBUG +#define UBOX_DEBUG_LOG(...) \ + do { fprintf(stderr, "DEBUG:%s:%d: ",__FILE__, __LINE__);\ + fprintf(stderr, __VA_ARGS__); } while (0) +#else +#define UBOX_DEBUG_LOG(fmt, args...) /* release */ +#endif + +#endif /* _UBOX_DEBUG_H */ -- cgit v1.2.3