From 5587badf241777493d833d258dc31c4d70b7ea8b Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 23 Apr 2016 07:15:25 +0000 Subject: * 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 --- internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal.h') 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 -- cgit v1.2.3