195
205
NODE *th_get_cref(rb_thread_t *th, rb_iseq_t *iseq, rb_control_frame_t *cfp);
196
206
NODE *th_cref_push(rb_thread_t *th, VALUE, int);
197
207
NODE *th_set_special_cref(rb_thread_t *th, VALUE *lfp, NODE * cref_stack);
199
210
static rb_control_frame_t *
200
211
th_get_ruby_level_cfp(rb_thread_t *th, rb_control_frame_t *cfp)
203
213
while (!RUBY_VM_CONTROL_FRAME_STACK_OVERFLOW_P(th, cfp)) {
204
214
if (RUBY_VM_NORMAL_ISEQ_P(cfp->iseq)) {
208
217
cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);