X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fbindings%2FGuile.cxx;h=fcc108349b55fa1afda71ad142f9e8bf15e79a72;hp=57d32bdd8009d02cd8fe2fad1762cf08bb5cfbbc;hb=adb0e762792c23674633b8513f4106b82aa38d15;hpb=fc58083a9eee8534fe3f67ddd3c020c87cd42a5f diff --git a/src/bindings/Guile.cxx b/src/bindings/Guile.cxx index 57d32bd..fcc1083 100644 --- a/src/bindings/Guile.cxx +++ b/src/bindings/Guile.cxx @@ -54,3 +54,11 @@ int GuileInterpreter::evaluate(const std::string& command, return 0; } + +int GuileInterpreter::loadFile(const std::string& filename, + std::ostream& stdout, + std::ostream& stderr, + std::string& result) { + return evaluate("(load \"" + filename + "\")", + stdout, stderr, result); +}