diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-01-23 15:08:38 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-01-23 15:08:38 +0900 |
| commit | e0e5aebc66833dfe55b362678032f7e0e4a265d7 (patch) | |
| tree | 9f760c627d7e8d2317e9e5dcb0be21b189b96f7b /src | |
| parent | 92570a96b0a047572ad45690f6e6bef279677ea5 (diff) | |
| download | mruby-e0e5aebc66833dfe55b362678032f7e0e4a265d7.tar.gz mruby-e0e5aebc66833dfe55b362678032f7e0e4a265d7.zip | |
add callback invocation from OP_DEBUG
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2113,11 +2113,15 @@ mrb_context_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int CASE(OP_DEBUG) { /* A debug print R(A),R(B),R(C) */ +#ifdef ENABLE_DEBUG + mrb->debug_op_hook(mrb, irep, pc, regs); +#else #ifdef ENABLE_STDIO printf("OP_DEBUG %d %d %d\n", GETARG_A(i), GETARG_B(i), GETARG_C(i)); #else abort(); #endif +#endif NEXT; } |
