1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

vm.c: Move the rdoc of RubyVM.resolve_feature_path [Bug #15482]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2018-12-30 13:21:30 +00:00
parent 695cc19be9
commit c6915042ab
2 changed files with 13 additions and 10 deletions

11
load.c
View file

@ -943,16 +943,7 @@ load_ext(VALUE path)
return (VALUE)dln_load(RSTRING_PTR(path));
}
/*
* call-seq:
* RubyVM.resolve_feature_path(feature) -> [:rb or :so, path]
*
* Identifies the file that will be loaded by "require(feature)".
* This API is experimental and just for internal.
*
* RubyVM.resolve_feature_path("set")
* #=> [:rb, "/path/to/feature.rb"]
*/
/* Method is documented in vm.c */
VALUE
rb_resolve_feature_path(VALUE klass, VALUE fname)

12
vm.c
View file

@ -2889,6 +2889,18 @@ static VALUE usage_analysis_operand_stop(VALUE self);
static VALUE usage_analysis_register_stop(VALUE self);
#endif
/*
* Document-method: RubyVM::resolve_feature_path
* call-seq:
* RubyVM.resolve_feature_path(feature) -> [:rb or :so, path]
*
* Identifies the file that will be loaded by "require(feature)".
* This API is experimental and just for internal.
*
* RubyVM.resolve_feature_path("set")
* #=> [:rb, "/path/to/feature.rb"]
*/
VALUE rb_resolve_feature_path(VALUE klass, VALUE fname);
void