Fix "Use MRB_SYM() for error class retrieval"; ref 2ddfd50df

The new macro (`MRB_E_SYM`) was not being used, so it is being used. Also
`MRB_E_SYM` is confusing with `MRB_SYM_E`, so change it to `MRB_ERROR_SYM`.
This commit is contained in:
KOBAYASHI Shuji
2021-01-27 11:23:08 +09:00
parent efa0314731
commit dd07067067
2 changed files with 20 additions and 28 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ enum mruby_presym {
static void init_##name(mrb_state *mrb) {}
/* use MRB_SYM() for E_RUNTIME_ERROR etc. */
# undef MRB_E_SYM
# define MRB_E_SYM(sym) MRB_SYM(sym)
#undef MRB_ERROR_SYM
#define MRB_ERROR_SYM(sym) MRB_SYM(sym)
#endif /* MRUBY_PRESYM_ENABLE_H */