ruby/internal/load.h
Nobuyoshi Nakada efd35db39c Make rb_load_entrypoint accept two arguments directly
`rb_load_entrypoint` is used only by `rb_box_load`; it checks that the
argument has two-elements (implicitly assuming it is an array),
extracts its contents, and then simply discards the argument.
2026-05-19 19:21:18 +09:00

21 lines
841 B
C

#ifndef INTERNAL_LOAD_H /*-*-C-*-vi:se ft=c:*/
#define INTERNAL_LOAD_H
/**
* @author Ruby developers <ruby-core@ruby-lang.org>
* @copyright This file is a part of the programming language Ruby.
* Permission is hereby granted, to either redistribute and/or
* modify this file, provided that the conditions mentioned in the
* file COPYING are met. Consult the file for details.
* @brief Internal header for require.
*/
#include "ruby/ruby.h" /* for VALUE */
/* load.c */
VALUE rb_get_expanded_load_path(void);
VALUE rb_load_entrypoint(VALUE fname, VALUE wrap);
VALUE rb_require_relative_entrypoint(VALUE fname);
int rb_require_internal(VALUE fname);
NORETURN(void rb_load_fail(VALUE, const char*));
#endif /* INTERNAL_LOAD_H */