summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-08-11 19:44:31 +1200
committerDavid Phillips <david@sighup.nz>2019-08-11 19:47:09 +1200
commit0d36dbbf03a836ab6bc0d964176015dc12e68b47 (patch)
tree1882ea3b76c6ce244b6402804a842dd50fc42aec
parent07af05ccc60e1aec3e8dd501233d67eaf769a8e7 (diff)
downloadtoy-cpu-assembler-0d36dbbf03a836ab6bc0d964176015dc12e68b47.tar.xz
Remove warning about non-ISO C feature
-rw-r--r--debug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug.h b/debug.h
index ce92cec..c19151a 100644
--- a/debug.h
+++ b/debug.h
@@ -2,9 +2,9 @@
#define DEBUG_H
#ifdef DEBUG
-#define debug(x...) printf(x)
+#define debug(...) printf(__VA_ARGS__)
#else
-#define debug(x...)
+#define debug(...)
#endif
#endif /* DEBUG_H */