summaryrefslogtreecommitdiff
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
commit5e57dc0fae0f6d9ec04c770337da1792268a71f1 (patch)
tree166451991a6a9b378ccd22d1a718ab5ef90cbdbd /include/ruby/ruby.h
parent8a44c2e5cc2fd0748c648e1b374dbb4b32e3c377 (diff)
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