diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-02-04 07:35:00 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-02-04 07:35:00 +0900 |
| commit | 5fd9f68b2735d6c104c9945e374ff28309af7a39 (patch) | |
| tree | b785b8eb4ababf75676fe2c7319fcd2a3b30058f /mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c | |
| parent | 3f7137feaeb3a86df01ae080b4d8826250f4ef29 (diff) | |
| parent | c86861bddf2af1fc8b17f695be65c2e7a140601f (diff) | |
| download | mruby-5fd9f68b2735d6c104c9945e374ff28309af7a39.tar.gz mruby-5fd9f68b2735d6c104c9945e374ff28309af7a39.zip | |
Merge pull request #4259 from shuujii/use-eException_class-instead-of-mrb_class_get
Use `mrb->eException_class` instead of `mrb_class_get()`
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c')
| -rw-r--r-- | mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c index cb4c738fc..233c86cef 100644 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c @@ -19,7 +19,7 @@ dbgcmd_run(mrb_state *mrb, mrdb_state *mrdb) if (dbg->xphase == DBG_PHASE_RUNNING){ struct RClass *exc; puts("Start it from the beginning."); - exc = mrb_define_class(mrb, "DebuggerRestart", mrb_class_get(mrb, "Exception")); + exc = mrb_define_class(mrb, "DebuggerRestart", mrb->eException_class); mrb_raise(mrb, exc, "Restart mrdb."); } } |
