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

Function get_eval_error

samples/fun_call_performance.cpp:182–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

fFunction · 0.50

Tested by

no test coverage detected