1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

reroute redefinition of NDEBUG

NDEBUG can be defined via a command-line argument.  Should take care of
such situations.
This commit is contained in:
卜部昌平 2020-04-18 05:40:57 +09:00
parent 735e035bf5
commit 32623150cd
4 changed files with 4 additions and 0 deletions

View file

@ -32,6 +32,7 @@
#include "builtin.h"
#if !ARRAY_DEBUG
# undef NDEBUG
# define NDEBUG
#endif
#include "ruby_assert.h"

View file

@ -15,6 +15,7 @@
#include <ctype.h>
#include <math.h>
#undef NDEBUG
#define NDEBUG
#include "id.h"
#include "internal.h"

View file

@ -7,6 +7,7 @@
#endif
#if ID_TABLE_DEBUG == 0
#undef NDEBUG
#define NDEBUG
#endif
#include "ruby_assert.h"

View file

@ -20,6 +20,7 @@
#include <gmp.h>
#endif
#undef NDEBUG
#define NDEBUG
#include "id.h"
#include "internal.h"