aboutsummaryrefslogtreecommitdiffstats
path: root/ruby_assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_assert.h')
-rw-r--r--ruby_assert.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ruby_assert.h b/ruby_assert.h
index 139256fed8..fa15da1e25 100644
--- a/ruby_assert.h
+++ b/ruby_assert.h
@@ -8,3 +8,8 @@
#undef assert
#define assert RUBY_ASSERT
#endif
+
+#ifdef NDEBUG
+ #undef RUBY_NDEBUG
+ #define RUBY_NDEBUG 1
+#endif