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

Function throws_exception

src/libfuzzer_client.cpp:168–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

fFunction · 0.50

Tested by

no test coverage detected