diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-15 18:04:57 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:20:53 +0900 |
| commit | 246c76e261ee033210527cfcd37c8eb4bfe680c7 (patch) | |
| tree | e762576d908e093025eb22404344dbed5842a8eb /src/kernel.c | |
| parent | 6128ae61a81d12892eac5397af74e4ce6ab99b06 (diff) | |
| download | mruby-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 'src/kernel.c')
| -rw-r--r-- | src/kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel.c b/src/kernel.c index d2074c16b..bc42a75d7 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -766,7 +766,7 @@ mrb_obj_ceqq(mrb_state *mrb, mrb_value self) { mrb_value v = mrb_get_arg1(mrb); mrb_int i, len; - mrb_sym eqq = MRB_OPSYM(eqq); + mrb_sym eqq = MRB_QSYM(eqq); mrb_value ary; if (mrb_array_p(self)) { |
