summaryrefslogtreecommitdiff
path: root/ruby_assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_assert.h')
-rw-r--r--ruby_assert.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/ruby_assert.h b/ruby_assert.h
index 52b56771cc..d8f7ddd35b 100644
--- a/ruby_assert.h
+++ b/ruby_assert.h
@@ -1,7 +1,6 @@
#ifndef RUBY_TOPLEVEL_ASSERT_H /*-*-C-*-vi:se ft=c:*/
#define RUBY_TOPLEVEL_ASSERT_H
/**
- * @file
* @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
@@ -9,13 +8,7 @@
* file COPYING are met. Consult the file for details.
*/
#include "ruby/assert.h"
-
-#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
-/* C89 compilers are required to support strings of only 509 chars. */
-/* can't use RUBY_ASSERT for such compilers. */
-#include <assert.h>
-#else
#undef assert
-#define assert RUBY_ASSERT
-#endif
+#define assert RUBY_ASSERT_NDEBUG
+
#endif /* RUBY_TOPLEVEL_ASSERT_H */