summaryrefslogtreecommitdiff
path: root/ruby_assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_assert.h')
-rw-r--r--ruby_assert.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ruby_assert.h b/ruby_assert.h
new file mode 100644
index 0000000000..d8f7ddd35b
--- /dev/null
+++ b/ruby_assert.h
@@ -0,0 +1,14 @@
+#ifndef RUBY_TOPLEVEL_ASSERT_H /*-*-C-*-vi:se ft=c:*/
+#define RUBY_TOPLEVEL_ASSERT_H
+/**
+ * @author Ruby developers <ruby-core@ruby-lang.org>
+ * @copyright This file is a part of the programming language Ruby.
+ * Permission is hereby granted, to either redistribute and/or
+ * modify this file, provided that the conditions mentioned in the
+ * file COPYING are met. Consult the file for details.
+ */
+#include "ruby/assert.h"
+#undef assert
+#define assert RUBY_ASSERT_NDEBUG
+
+#endif /* RUBY_TOPLEVEL_ASSERT_H */