summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 30d4ea57c3..eb34c35f01 100644
--- a/eval.c
+++ b/eval.c
@@ -899,6 +899,14 @@ rb_block_given_p(void)
}
}
+int rb_vm_cframe_keyword_p(const rb_control_frame_t *cfp);
+
+int
+rb_keyword_given_p(void)
+{
+ return rb_vm_cframe_keyword_p(GET_EC()->cfp);
+}
+
VALUE rb_eThreadError;
/*! Declares that the current method needs a block.