MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / get_eval_error

Function get_eval_error

src/main.cpp:178–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178chaiscript::exception::eval_error get_eval_error(const std::function<void ()> &f)
179{
180 try {
181 f();
182 } catch (const chaiscript::exception::eval_error &e) {
183 return e;
184 }
185
186 throw std::runtime_error("no exception throw");
187}
188
189std::string get_next_command() {
190 std::string retval("quit");

Callers

nothing calls this directly

Calls 1

fFunction · 0.50

Tested by

no test coverage detected