From 9597bfecbbc50f3e50ca5b0028b2566aefc18b49 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 5 Sep 2015 23:14:18 +0000 Subject: ruby.h: eval ASSUME argument * include/ruby/ruby.h (ASSUME): evaluate the argument just once everywhere. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/ruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby/ruby.h') diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 515a27aa0b..8a61e16b25 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -48,7 +48,7 @@ extern "C" { # ifdef UNREACHABLE # define ASSUME(x) (LIKELY(!!(x)) ? (void)0 : UNREACHABLE) # else -# define ASSUME(x) ((void)0) +# define ASSUME(x) ((void)(x)) # endif #endif #ifndef UNREACHABLE -- cgit v1.2.3