Project

General

Profile

Bug #15482 ยป document-resolve_feature_path.patch

zverok (Victor Shepelev), 12/29/2018 10:40 AM

View differences:

load.c
943 943
    return (VALUE)dln_load(RSTRING_PTR(path));
944 944
}
945 945

  
946
/*
947
 *  call-seq:
948
 *     RubyVM.resolve_feature_path(feature) -> [:rb or :so, path]
949
 *
950
 *  Identifies the file that will be loaded by "require(feature)".
951
 *  This API is experimental and just for internal.
952
 *
953
 *     RubyVM.resolve_feature_path("set")
954
 *       #=> [:rb, "/path/to/feature.rb"]
955
 */
946
/* Method is documented in vm.c */
956 947

  
957 948
VALUE
958 949
rb_resolve_feature_path(VALUE klass, VALUE fname)
vm.c
2889 2889
static VALUE usage_analysis_register_stop(VALUE self);
2890 2890
#endif
2891 2891

  
2892
/*
2893
 * Document-method: RubyVM::resolve_feature_path
2894
 * call-seq:
2895
 *   RubyVM.resolve_feature_path(feature) -> [:rb or :so, path]
2896
 *
2897
 * Identifies the file that will be loaded by "require(feature)".
2898
 * This API is experimental and just for internal.
2899
 *
2900
 *    RubyVM.resolve_feature_path("set")
2901
 *      #=> [:rb, "/path/to/feature.rb"]
2902
 */
2903

  
2892 2904
VALUE rb_resolve_feature_path(VALUE klass, VALUE fname);
2893 2905

  
2894 2906
void