summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mruby/presym.h4
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 {