summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index b54d67bf5a..3e73e64d08 100644
--- a/vm.c
+++ b/vm.c
@@ -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