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 | 5e57dc0fae0f6d9ec04c770337da1792268a71f1 (patch) | |
tree | 166451991a6a9b378ccd22d1a718ab5ef90cbdbd | |
parent | 8a44c2e5cc2fd0748c648e1b374dbb4b32e3c377 (diff) | |
download | ruby-5e57dc0fae0f6d9ec04c770337da1792268a71f1.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 |