mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02: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"
|
#include "builtin.h"
|
||||||
|
|
||||||
#if !ARRAY_DEBUG
|
#if !ARRAY_DEBUG
|
||||||
|
# undef NDEBUG
|
||||||
# define NDEBUG
|
# define NDEBUG
|
||||||
#endif
|
#endif
|
||||||
#include "ruby_assert.h"
|
#include "ruby_assert.h"
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#undef NDEBUG
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include "id.h"
|
#include "id.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ID_TABLE_DEBUG == 0
|
#if ID_TABLE_DEBUG == 0
|
||||||
|
#undef NDEBUG
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#endif
|
#endif
|
||||||
#include "ruby_assert.h"
|
#include "ruby_assert.h"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include <gmp.h>
|
#include <gmp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef NDEBUG
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include "id.h"
|
#include "id.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue