mirror of
https://github.com/ruby/ruby.git
synced 2026-08-29 15:45:44 +08:00
`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.
21 lines
841 B
C
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 */
|