diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-02-03 22:00:55 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-02-03 22:00:55 +0900 |
| commit | c86861bddf2af1fc8b17f695be65c2e7a140601f (patch) | |
| tree | b785b8eb4ababf75676fe2c7319fcd2a3b30058f /mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c | |
| parent | 3f7137feaeb3a86df01ae080b4d8826250f4ef29 (diff) | |
| download | mruby-c86861bddf2af1fc8b17f695be65c2e7a140601f.tar.gz mruby-c86861bddf2af1fc8b17f695be65c2e7a140601f.zip | |
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."); } } |
