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