aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/ruby.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-05 23:14:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-05 23:14:18 +0000
commit9597bfecbbc50f3e50ca5b0028b2566aefc18b49 (patch)
tree166451991a6a9b378ccd22d1a718ab5ef90cbdbd /include/ruby/ruby.h
parent9138a9f2572b1ace88ae6ecbb5d9bcb86aeae148 (diff)
downloadruby-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
Diffstat (limited to 'include/ruby/ruby.h')
-rw-r--r--include/ruby/ruby.h2
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