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

Function throws_exception

samples/fun_call_performance.cpp:170–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170bool throws_exception(const std::function<void()> &f)
171{
172 try {
173 f();
174 }
175 catch (...) {
176 return true;
177 }
178
179 return false;
180}
181
182chaiscript::exception::eval_error get_eval_error(const std::function<void()> &f)
183{

Callers

nothing calls this directly

Calls 1

fFunction · 0.50

Tested by

no test coverage detected