2019-07-14 04:05:16 +00:00
|
|
|
#include "ruby/assert.h"
|
2016-01-22 08:33:55 +00:00
|
|
|
|
2018-01-02 06:41:43 +00:00
|
|
|
#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
|
2016-01-22 08:33:55 +00:00
|
|
|
#undef assert
|
|
|
|
#define assert RUBY_ASSERT
|
2018-01-02 06:41:43 +00:00
|
|
|
#endif
|
2019-07-19 03:04:32 +00:00
|
|
|
|
|
|
|
#ifdef NDEBUG
|
|
|
|
#undef RUBY_NDEBUG
|
|
|
|
#define RUBY_NDEBUG 1
|
|
|
|
#endif
|