diff options
author | 卜部昌平 <[email protected]> | 2020-04-18 05:40:57 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-04-21 13:07:19 +0900 |
commit | 32623150cd389f1cdc6a840ec88ce9d1e2a43a87 (patch) | |
tree | 88933a4634c9715cc471c38f2fbce21c5b18998a | |
parent | 735e035bf54e018fa629f6601d882fc0b097e1fc (diff) |
reroute redefinition of NDEBUG
NDEBUG can be defined via a command-line argument. Should take care of
such situations.
-rw-r--r-- | array.c | 1 | ||||
-rw-r--r-- | complex.c | 1 | ||||
-rw-r--r-- | id_table.c | 1 | ||||
-rw-r--r-- | rational.c | 1 |
4 files changed, 4 insertions, 0 deletions
@@ -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" diff --git a/id_table.c b/id_table.c index 4f8540246c..ade49cd8da 100644 --- a/id_table.c +++ b/id_table.c @@ -7,6 +7,7 @@ #endif #if ID_TABLE_DEBUG == 0 +#undef NDEBUG #define NDEBUG #endif #include "ruby_assert.h" diff --git a/rational.c b/rational.c index b828ec1e39..f94bf921c7 100644 --- a/rational.c +++ b/rational.c @@ -20,6 +20,7 @@ #include <gmp.h> #endif +#undef NDEBUG #define NDEBUG #include "id.h" #include "internal.h" |