diff options
| author | fleuria <[email protected]> | 2013-07-25 02:51:24 +0800 |
|---|---|---|
| committer | fleuria <[email protected]> | 2013-07-25 03:00:03 +0800 |
| commit | 620e323d156378f776b9914c45d460699ebfc41f (patch) | |
| tree | ba5bfb88085cb51efb46c50a9cdecee4c61315cf /src/vm.c | |
| parent | bbbe996e0da745856af543158c39a2ae6bd966de (diff) | |
| download | mruby-620e323d156378f776b9914c45d460699ebfc41f.tar.gz mruby-620e323d156378f776b9914c45d460699ebfc41f.zip | |
replace assert with mrb_assert
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -92,12 +92,12 @@ stack_init(mrb_state *mrb) { struct mrb_context *c = mrb->c; - /* assert(mrb->stack == NULL); */ + /* mrb_assert(mrb->stack == NULL); */ c->stbase = (mrb_value *)mrb_calloc(mrb, STACK_INIT_SIZE, sizeof(mrb_value)); c->stend = c->stbase + STACK_INIT_SIZE; c->stack = c->stbase; - /* assert(ci == NULL); */ + /* mrb_assert(ci == NULL); */ c->cibase = (mrb_callinfo *)mrb_calloc(mrb, CALLINFO_INIT_SIZE, sizeof(mrb_callinfo)); c->ciend = c->cibase + CALLINFO_INIT_SIZE; c->ci = c->cibase; @@ -544,7 +544,7 @@ void mrb_gv_val_set(mrb_state *mrb, mrb_sym sym, mrb_value val); mrb_value mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) { - /* assert(mrb_proc_cfunc_p(proc)) */ + /* mrb_assert(mrb_proc_cfunc_p(proc)) */ mrb_irep *irep = proc->body.irep; mrb_code *pc = irep->iseq; mrb_value *pool = irep->pool; |
