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