MCPcopy Create free account
hub / github.com/cselab/aphros / CmdInclude

Method CmdInclude

src/parse/parser.cpp:240–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void Parser::Imp::CmdInclude(std::string s, std::string curpath) {
241 std::string cmd;
242 std::string filename;
243 std::stringstream b(s);
244 b >> cmd >> filename;
245 std::string dir;
246 owner_->ParseFile(filename, curpath != "" ? util::GetDirname(curpath) : "");
247}
248
249void Parser::Run(std::string s) {
250 imp->Cmd(s, "", -1);

Callers

nothing calls this directly

Calls 2

GetDirnameFunction · 0.85
ParseFileMethod · 0.80

Tested by

no test coverage detected