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