summaryrefslogtreecommitdiff
path: root/include/ruby/backward
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2022-02-19 16:02:29 +0900
committerNobuyoshi Nakada <[email protected]>2022-02-19 23:32:52 +0900
commit131154f878b7f63277bd97520500414047a814fa ()
tree86550107529a3a5357517b0679c37bc1cb6705ff /include/ruby/backward
parent6e6ee1e6b3ce70a325043c502918c1eb9529b4a2 (diff)
Define `HAVE___BUILTIN_UNREACHABLE` instead of `UNREACHABLE`
`UNREACHABLE` in ruby/internal/has/builtin.h is only used as just a flag now, and redefined in ruby/backward/2/assume.h then.
Notes: Merged: https://.com/ruby/ruby/pull/5577
-rw-r--r--include/ruby/backward/2/assume.h1
1 files changed, 0 insertions, 1 deletions
@@ -25,7 +25,6 @@
#include "ruby/internal/has/builtin.h"
#undef ASSUME /* Kill config.h definition */
-#undef UNREACHABLE /* Kill config.h definition */
#define ASSUME RBIMPL_ASSUME /**< @old{RBIMPL_ASSUME} */
#define UNREACHABLE RBIMPL_UNREACHABLE() /**< @old{RBIMPL_UNREACHABLE} */
#define UNREACHABLE_RETURN RBIMPL_UNREACHABLE_RETURN /**< @old{RBIMPL_UNREACHABLE_RETURN} */