| 148 | } |
| 149 | |
| 150 | void help(int n) { |
| 151 | if ( n >= 0 ) { |
| 152 | std::cout << "ChaiScript evaluator. To evaluate an expression, type it and press <enter>.\n"; |
| 153 | std::cout << "Additionally, you can inspect the runtime system using:\n"; |
| 154 | std::cout << " dump_system() - outputs all functions registered to the system\n"; |
| 155 | std::cout << " dump_object(x) - dumps information about the given symbol\n"; |
| 156 | } else { |
| 157 | std::cout << "usage : chai [option]+\n"; |
| 158 | std::cout << "option:" << '\n'; |
| 159 | std::cout << " -h | --help" << '\n'; |
| 160 | std::cout << " -i | --interactive" << '\n'; |
| 161 | std::cout << " -c | --command cmd" << '\n'; |
| 162 | std::cout << " -v | --version" << '\n'; |
| 163 | std::cout << " - --stdin" << '\n'; |
| 164 | std::cout << " filepath" << '\n'; |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | bool throws_exception(const std::function<void ()> &f) |
| 169 | { |
nothing calls this directly
no outgoing calls
no test coverage detected