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:
parent
735e035bf5
commit
32623150cd
4 changed files with 4 additions and 0 deletions
1
array.c
1
array.c
|
@ -32,6 +32,7 @@
|
|||
#include "builtin.h"
|
||||
|
||||
#if !ARRAY_DEBUG
|
||||
# undef NDEBUG
|
||||
# define NDEBUG
|
||||
#endif
|
||||
#include "ruby_assert.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
|
||||
#undef NDEBUG
|
||||
#define NDEBUG
|
||||
#include "id.h"
|
||||
#include "internal.h"
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#endif
|
||||
|
||||
#if ID_TABLE_DEBUG == 0
|
||||
#undef NDEBUG
|
||||
#define NDEBUG
|
||||
#endif
|
||||
#include "ruby_assert.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <gmp.h>
|
||||
#endif
|
||||
|
||||
#undef NDEBUG
|
||||
#define NDEBUG
|
||||
#include "id.h"
|
||||
#include "internal.h"
|
||||
|
|
Loading…
Reference in a new issue