diff options
| author | dearblue <[email protected]> | 2021-04-24 10:31:21 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2021-04-24 10:31:21 +0900 |
| commit | 94c5c8f44c70646e665cc1518ddac68165d3986f (patch) | |
| tree | d0adf1657c0d393e05ed46a91bc8938ce65e699e /src/vm.c | |
| parent | 39dc7b79014413f4f45f30fc977366b58814ab02 (diff) | |
| download | mruby-94c5c8f44c70646e665cc1518ddac68165d3986f.tar.gz mruby-94c5c8f44c70646e665cc1518ddac68165d3986f.zip | |
Introduce `MRB_GC_RED`
Replaces the magic number `7` except in `src/gc.c`.
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -558,7 +558,7 @@ exec_irep_prepare_posthook(mrb_state *mrb, mrb_callinfo *ci, int nregs, mrb_func 0, 0, 0, 0 }; static const struct RProc hook_caller = { - NULL, NULL, MRB_TT_PROC, 7 /* GC_RED */, MRB_FL_OBJ_IS_FROZEN, { &hook_irep }, NULL, { NULL } + NULL, NULL, MRB_TT_PROC, MRB_GC_RED, MRB_FL_OBJ_IS_FROZEN, { &hook_irep }, NULL, { NULL } }; struct RProc *hook = mrb_proc_new_cfunc(mrb, posthook); |
