lang: ast: suppress debug output by default

This commit is contained in:
2024-12-05 19:37:58 +00:00
parent c0a90f40b5
commit 9a4b074381
3 changed files with 48 additions and 22 deletions

12
lang/debug.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef _DEBUG_H_
#define _DEBUG_H_
#include <stdio.h>
#if defined(IVY_LANG_DEBUG)
#define debug_printf(...) printf(__VA_ARGS__)
#else
#define debug_printf(...)
#endif
#endif