| 168 | } |
| 169 | |
| 170 | bool 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 | |
| 182 | chaiscript::exception::eval_error get_eval_error(const std::function<void()> &f) |
| 183 | { |