diff options
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/debug.c b/src/debug.c index 075af5c24..27c1c6f78 100644 --- a/src/debug.c +++ b/src/debug.c @@ -10,7 +10,7 @@ get_file(mrb_irep_debug_info *info, uint32_t pc) int32_t count; if(pc >= info->pc_count) { return NULL; } - // get upper bound + /* get upper bound */ ret = info->files; count = info->flen; while (count > 0) { @@ -24,9 +24,9 @@ get_file(mrb_irep_debug_info *info, uint32_t pc) --ret; - // check returning file exists inside debug info + /* check returning file exists inside debug info */ mrb_assert(info->files <= ret && ret < (info->files + info->flen)); - // check pc is within the range of returning file + /* check pc is within the range of returning file */ mrb_assert((*ret)->start_pos <= pc && pc < (((ret + 1 - info->files) < info->flen) ? (*(ret+1))->start_pos : info->pc_count)); @@ -77,7 +77,7 @@ mrb_debug_get_line(mrb_irep *irep, uint32_t pc) return f->line_ary[pc - f->start_pos]; case mrb_debug_line_flat_map: { - // get upper bound + /* get upper bound */ mrb_irep_debug_info_line *ret = f->line_flat_map; uint32_t count = f->line_entry_count; while (count > 0) { @@ -91,9 +91,9 @@ mrb_debug_get_line(mrb_irep *irep, uint32_t pc) --ret; - // check line entry pointer range + /* check line entry pointer range */ mrb_assert(f->line_flat_map <= ret && ret < (f->line_flat_map + f->line_entry_count)); - // check pc range + /* check pc range */ mrb_assert(ret->start_pos <= pc && pc < (((ret + 1 - f->line_flat_map) < f->line_entry_count) ? (ret+1)->start_pos : irep->debug_info->pc_count)); @@ -185,7 +185,7 @@ mrb_debug_info_append_file(mrb_state *mrb, mrb_irep *irep, m.line = irep->lines[start_pos + i]; ret->line_flat_map[ret->line_entry_count] = m; - // update + /* update */ ++ret->line_entry_count; prev_line = irep->lines[start_pos + i]; } |
