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