ruby-changes:60849
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 21 Apr 2020 13:08:52 +0900 (JST)
Subject: [ruby-changes:60849] 32623150cd (master): reroute redefinition of NDEBUG
https://git.ruby-lang.org/ruby.git/commit/?id=32623150cd From 32623150cd389f1cdc6a840ec88ce9d1e2a43a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Sat, 18 Apr 2020 05:40:57 +0900 Subject: reroute redefinition of NDEBUG NDEBUG can be defined via a command-line argument. Should take care of such situations. diff --git a/array.c b/array.c index 05fcc1c..dbb40db 100644 --- a/array.c +++ b/array.c @@ -32,6 +32,7 @@ https://github.com/ruby/ruby/blob/trunk/array.c#L32 #include "builtin.h" #if !ARRAY_DEBUG +# undef NDEBUG # define NDEBUG #endif #include "ruby_assert.h" diff --git a/complex.c b/complex.c index 50f78ef..2a37c42 100644 --- a/complex.c +++ b/complex.c @@ -15,6 +15,7 @@ https://github.com/ruby/ruby/blob/trunk/complex.c#L15 #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 4f85402..ade49cd 100644 --- a/id_table.c +++ b/id_table.c @@ -7,6 +7,7 @@ https://github.com/ruby/ruby/blob/trunk/id_table.c#L7 #endif #if ID_TABLE_DEBUG == 0 +#undef NDEBUG #define NDEBUG #endif #include "ruby_assert.h" diff --git a/rational.c b/rational.c index b828ec1..f94bf92 100644 --- a/rational.c +++ b/rational.c @@ -20,6 +20,7 @@ https://github.com/ruby/ruby/blob/trunk/rational.c#L20 #include <gmp.h> #endif +#undef NDEBUG #define NDEBUG #include "id.h" #include "internal.h" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/