aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Borgerson <contact@mborgerson.com>2019-12-17 14:15:55 -0700
committerMatt Borgerson <contact@mborgerson.com>2019-12-17 14:15:55 -0700
commitbdee9ec9eeb82633f98b4977432e8cf5cc529231 (patch)
treec921d894b6d3df448448bbea02911f118098591b
parentda46c78dc1ef9e6d7fcbb2660deb08e08f121300 (diff)
downloadgdbstub-bdee9ec9eeb82633f98b4977432e8cf5cc529231.tar.gz
Remove unconditional ASSERT deadloop in release build
-rw-r--r--gdbstub.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdbstub.h b/gdbstub.h
index a3159cc..53cf50b 100644
--- a/gdbstub.h
+++ b/gdbstub.h
@@ -59,9 +59,8 @@
} \
}
#else
-#define ASSERT(x) { \
- while(1); \
-}
+#define ASSERT(x) \
+ do {} while (0)
#endif
#endif