diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-26 10:32:19 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-26 10:32:19 +0900 |
| commit | 66f2e733e52bc03f17f9b5e6913cee2ad116e03b (patch) | |
| tree | 131977e57637e1b54b659fea290599218f44215d /include | |
| parent | a33f9d7b651aa62ecc22ed4facf01b9aa8ef03b0 (diff) | |
| download | mruby-66f2e733e52bc03f17f9b5e6913cee2ad116e03b.tar.gz mruby-66f2e733e52bc03f17f9b5e6913cee2ad116e03b.zip | |
Symbols should work with `MRB_USE_ALL_SYMBOLS`; fix #5116
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/presym.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |
