diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-05 23:14:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-05 23:14:18 +0000 |
commit | 9597bfecbbc50f3e50ca5b0028b2566aefc18b49 (patch) | |
tree | 166451991a6a9b378ccd22d1a718ab5ef90cbdbd | |
parent | 9138a9f2572b1ace88ae6ecbb5d9bcb86aeae148 (diff) | |
download | ruby-9597bfecbbc50f3e50ca5b0028b2566aefc18b49.tar.gz |
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
-rw-r--r-- | include/ruby/ruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |