aboutsummaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-08-30 21:56:50 -0700
committerJeremy Evans <code@jeremyevans.net>2019-08-30 21:56:50 -0700
commitec6206a81a1d61efe5bda69ab704c09e75033c01 (patch)
tree0bab6c1fb1ba657b9edcbc6c235211f3160c800b /proc.c
parent3463e83192215c36bdcebad8be907eaa09593a41 (diff)
downloadruby-ec6206a81a1d61efe5bda69ab704c09e75033c01.tar.gz
Use more accurate source location in keyword argument separation warnings
This shows locations in places it didn't before, such as for proc calls, and fixes the location for super calls. This requires making iseq_location non-static and MJIT exported, which I hope will not cause problems.
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 8f51ff10eb..4d180f897e 100644
--- a/proc.c
+++ b/proc.c
@@ -1183,7 +1183,7 @@ rb_proc_get_iseq(VALUE self, int *is_proc)
return NULL;
}
-static VALUE
+MJIT_FUNC_EXPORTED VALUE
iseq_location(const rb_iseq_t *iseq)
{
VALUE loc[2];