MCPcopy Create free account
hub / github.com/digego/extempore / loadFile

Method loadFile

src/SchemeProcess.cpp:458–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456 }
457
458 bool SchemeProcess::loadFile(const std::string file, const std::string path)
459 {
460 FILE* impscm = 0;
461 if(strlen(path.c_str())>0) {
462 impscm = fopen(std::string(path).append("/").append(file).c_str(),"r");
463 } else {
464 impscm = fopen(file.c_str(),"r");
465 }
466 if(!impscm) {
467 std::cout << "ERROR: Unable to locate file: " << path << "/" << file << std::endl;
468 return false;
469 //exit(1);
470 }else{
471 //std::cout << "LOAD THREAD:" << pthread_self() << std::endl;
472 //std::cout << "LOADING FILE: " << path << "/" << file << std::endl << std::flush;
473 scheme_load_file(sc, impscm);
474 return true;
475 }
476 }
477
478 bool SchemeProcess::loadFile(const std::string file)
479 {

Callers 1

Calls 1

scheme_load_fileFunction · 0.85

Tested by

no test coverage detected