diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-11 10:02:13 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-01-03 11:02:11 -0800 |
commit | 3e486c4578f3f6a81fc0f9afba6551dfa8c7b63b (patch) | |
tree | 9530291dc25bd3f137778129297a32e76ceb8bb8 /utils.c | |
parent | a3bbf780252e55bb1dcab717289ef09e00d11223 (diff) |
Only build debug infrastructure if DEBUG is defined
It's only used when DEBUG is defined, so don't build it when
we're not using it.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -55,9 +55,10 @@ uRecalloc(void *old, size_t nOld, size_t nNew, size_t itemSize) /***====================================================================***/ -/*** PRINT FUNCTIONS ***/ +/*** DEBUG FUNCTIONS ***/ /***====================================================================***/ +#ifdef DEBUG static FILE *uDebugFile = NULL; int uDebugIndentLevel = 0; static const int uDebugIndentSize = 4; @@ -96,6 +97,7 @@ uDebug(char *s, ...) va_end(args); fflush(uDebugFile); } +#endif /***====================================================================***/ |