| 69 | } |
| 70 | |
| 71 | extern "C" void dbg_eval(const char *text) |
| 72 | { |
| 73 | std::unique_ptr<Expression> expr; |
| 74 | |
| 75 | try { |
| 76 | ScriptFrame frame(true); |
| 77 | expr = ConfigCompiler::CompileText("<dbg>", text); |
| 78 | Value result = Serialize(expr->Evaluate(frame), 0); |
| 79 | dbg_inspect_value(result); |
| 80 | } catch (const std::exception& ex) { |
| 81 | std::cout << "Error: " << DiagnosticInformation(ex) << "\n"; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | extern "C" void dbg_eval_with_value(const Value& value, const char *text) |
| 86 | { |
nothing calls this directly
no test coverage detected