From 66f2e733e52bc03f17f9b5e6913cee2ad116e03b Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 26 Nov 2020 10:32:19 +0900 Subject: Symbols should work with `MRB_USE_ALL_SYMBOLS`; fix #5116 --- include/mruby/presym.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/mruby/presym.h b/include/mruby/presym.h index 61e5bc8cb..fd08a24da 100644 --- a/include/mruby/presym.h +++ b/include/mruby/presym.h @@ -8,7 +8,11 @@ #define MRUBY_PRESYM_H #undef MRB_PRESYM_MAX +#ifdef MRB_USE_ALL_SYMBOLS +#define MRB_PRESYM_NAMED(lit, num, type, name) MRB_##type##__##name = (num), +#else #define MRB_PRESYM_NAMED(lit, num, type, name) MRB_##type##__##name = (num<<1), +#endif #define MRB_PRESYM_UNNAMED(lit, num) enum mruby_presym { -- cgit v1.2.3