Skip to content
Snippets Groups Projects
Commit 2c7c3675 authored by Axel Naumann's avatar Axel Naumann
Browse files

Remove debug output.

parent c7ce797b
No related branches found
No related tags found
Loading
......@@ -20,20 +20,15 @@ TheInterpreter *cling_create(int argc, const char *argv[], const char* llvmdir)
return interp;
}
/// Evaluate a string of code. Returns 0 on success.
int cling_eval_dummy(TheInterpreter *interpVP, const char *code) {
printf("Called cling_eval_dummy\n");
}
/// Evaluate a string of code. Returns 0 on success.
int cling_eval(TheInterpreter *interpVP, const char *code) {
cling::Interpreter *interp = (cling::Interpreter *) interpVP;
printf("Interpreter @%p about to run \"%s\"\n", interp, code);
cling::Value V;
cling::Interpreter::CompilationResult Res = interp->evaluate(code, V);
//cling::Value V;
cling::Interpreter::CompilationResult Res = interp->process(code /*, V*/);
if (Res != cling::Interpreter::kSuccess)
return 1;
return 0;
}
///\}
} // extern "C"
\ No newline at end of file
} // extern "C"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment