vendor/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/context.c
/*
 *  call-seq:
 *    context.frame_file(frame_position = 0) -> string
 *
 *  Returns the name of the file in the frame.
 */


Returns the name of the file in the frame.
Returns the name of the file in the frame .
static VALUE
Context_frame_file(int argc, VALUE *argv, VALUE self)
{
  VALUE loc, absolute_path;
  FRAME_SETUP;
  loc = dc_frame_location(context, frame_n);
  absolute_path = rb_funcall(loc, rb_intern("absolute_path"), 0);
  if (!NIL_P(absolute_path))
    return absolute_path;
  return rb_funcall(loc, rb_intern("path"), 0);
}
static VALUE Context_frame_file ( int argc , VALUE * argv , VALUE self ) { VALUE loc , absolute_path ; FRAME_SETUP ; loc = dc_frame_location ( context , frame_n ) ; absolute_path = rb_funcall ( loc , rb_intern ( " " ) , 0 ) ; if ( ! NIL_P ( absolute_path ) ) return absolute_path ; return rb_funcall ( loc , rb_intern ( " " ) , 0 ) ; }
call-seq:
    context.frame_file(frame_position = 0) -> string
call - seq : context . frame_file ( frame_position = 0 ) - > string