diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-23 07:15:25 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-23 07:15:25 +0000 |
commit | c23167e3144603c3b6438c1f007836bde18620e4 (patch) | |
tree | 3476d507f7554ac16d2ebbb931166eccb0de7a31 /internal.h | |
parent | 21994d145611f49ae897ab91016930e7ca23cd75 (diff) | |
download | ruby-c23167e3144603c3b6438c1f007836bde18620e4.tar.gz |
* include/ruby/ruby.h (RB_LIKELY): use prefix in ruby.h.
* intern.h (LIKELY): define with RB_LIKELY.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 371cb1b83a..a9f50a5cdc 100644 --- a/internal.h +++ b/internal.h @@ -23,6 +23,9 @@ extern "C" { #endif #endif +#define LIKELY(x) RB_LIKELY(x) +#define UNLIKELY(x) RB_UNLIKELY(x) + #ifndef __has_attribute # define __has_attribute(x) 0 #endif |