summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-05-15 18:04:57 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:20:53 +0900
commit246c76e261ee033210527cfcd37c8eb4bfe680c7 (patch)
treee762576d908e093025eb22404344dbed5842a8eb /include
parent6128ae61a81d12892eac5397af74e4ce6ab99b06 (diff)
downloadmruby-246c76e261ee033210527cfcd37c8eb4bfe680c7.tar.gz
mruby-246c76e261ee033210527cfcd37c8eb4bfe680c7.zip
Rename `MRB_OPSYM()` to `MRB_QSYM()`.
Where `QSYM` means quoted symbols, which cannot be represented C symbols, so specify aliases instead. - operators: name of the operation, e.g. add for `+` - predicates: add `_p` suffix instead of `?` - bang methods: add `_b` suffix instead of `!` - instance variables: add `a_` prefix instead of `@` - global variables: add `d_` prefix instead of `@` - class variables: unsupported; don't use them
Diffstat (limited to 'include')
-rw-r--r--include/mruby/presym.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mruby/presym.h b/include/mruby/presym.h
index bd3918c52..33e51fe18 100644
--- a/include/mruby/presym.h
+++ b/include/mruby/presym.h
@@ -9,7 +9,7 @@
#undef MRB_PRESYM_MAX
#define MRB_PRESYM_CSYM(sym, num) MRB_PRESYM__##sym = (num<<1),
-#define MRB_PRESYM_OPSYM(op, sym, num) MRB_PRESYM_op_##sym = (num<<1),
+#define MRB_PRESYM_QSYM(src, sym, num) MRB_PRESYM_q_##sym = (num<<1),
#define MRB_PRESYM_SYM(sym, num)
enum mruby_presym {
@@ -17,9 +17,9 @@ enum mruby_presym {
};
#undef MRB_PRESYM_CSYM
-#undef MRB_PRESYM_OPSYM
+#undef MRB_PRESYM_QSYM
#undef MRB_PRESYM_SYM
#define MRB_SYM(sym) MRB_PRESYM__##sym
-#define MRB_OPSYM(sym) MRB_PRESYM_op_##sym
+#define MRB_QSYM(sym) MRB_PRESYM_q_##sym
#endif /* MRUBY_PRESYM_H */