mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user