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