summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-23 07:15:25 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-23 07:15:25 (GMT)
commit5587badf241777493d833d258dc31c4d70b7ea8b (patch)
tree3476d507f7554ac16d2ebbb931166eccb0de7a31 /internal.h
parent3f7cce9f189a06a9321ad084ae632058b2422fe1 (diff)
* 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 371cb1b..a9f50a5 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