diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-10 05:26:52 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-10 05:26:52 +0000 |
commit | 61e4c999622d7f028a15379b5cd91ad1a25c2799 () | |
tree | 6f313b2a2d4767a8e316f2522e8e59e4e57329f0 /vm_backtrace.c | |
parent | 324b6d306d7da4fd3fc109e4e9781c782b64369f (diff) |
refactoring about source line.
* iseq.c (find_line_no): renamed to rb_iseq_line_no(). * vm_backtrace.c (calc_lineno): add a comment why we need to use "pos-1". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | vm_backtrace.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -31,7 +31,9 @@ id2str(ID id) inline static int calc_lineno(const rb_iseq_t *iseq, const VALUE *pc) { - return rb_iseq_line_no(iseq, pc - iseq->body->iseq_encoded); } int |