MCPcopy Create free account
hub / github.com/covscript/covscript / import

Function import

sources/instance/type_ext.cpp:1631–1639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1629 }
1630
1631 var import(const context_t &context, const string &dir, const string &name)
1632 {
1633 try {
1634 return make_namespace(context->instance->import(dir, name));
1635 }
1636 catch (...) {
1637 return null_pointer;
1638 }
1639 }
1640
1641 var source_import(const context_t &context, const string &path)
1642 {

Callers

nothing calls this directly

Calls 2

make_namespaceFunction · 0.85
importMethod · 0.80

Tested by

no test coverage detected