| 426 | } |
| 427 | |
| 428 | static std::string format(const std::string &t_why, const File_Position &t_where, const std::string &t_fname, |
| 429 | const std::vector<Boxed_Value> &t_parameters, bool t_dot_notation, const chaiscript::detail::Dispatch_Engine &t_ss) |
| 430 | { |
| 431 | std::stringstream ss; |
| 432 | |
| 433 | ss << format_why(t_why); |
| 434 | ss << " "; |
| 435 | |
| 436 | ss << "With parameters: " << format_parameters(t_parameters, t_dot_notation, t_ss); |
| 437 | ss << " "; |
| 438 | |
| 439 | ss << format_filename(t_fname); |
| 440 | ss << " "; |
| 441 | |
| 442 | ss << format_location(t_where); |
| 443 | |
| 444 | return ss.str(); |
| 445 | } |
| 446 | |
| 447 | static std::string format(const std::string &t_why, |
| 448 | const std::vector<Boxed_Value> &t_parameters, |