Ruby 2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)

ruby_assert.h
Go to the documentation of this file.
1 #include "ruby/assert.h"
2
3 #if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
4 /* C89 compilers are required to support strings of only 509 chars. */
5 /* can't use RUBY_ASSERT for such compilers. */
6 #include <assert.h>
7 #else
8 #undef assert
9 #define assert RUBY_ASSERT
10 #endif
11
12 #ifdef NDEBUG
13 #undef RUBY_NDEBUG
14 #define RUBY_NDEBUG 1
15 #endif
assert.h