------------------------------------------------------------------------------------------------
| 59 | |
| 60 | // ------------------------------------------------------------------------------------------------ |
| 61 | std::string AddLineNumber(const std::string& s,uint64_t line /*= LINE_NOT_SPECIFIED*/, const std::string& prefix = std::string()) { |
| 62 | return line == STEP::SyntaxError::LINE_NOT_SPECIFIED ? prefix+s : static_cast<std::string>( (Formatter::format(),prefix,"(line ",line,") ",s) ); |
| 63 | } |
| 64 | |
| 65 | // ------------------------------------------------------------------------------------------------ |
| 66 | std::string AddEntityID(const std::string& s,uint64_t entity /*= ENTITY_NOT_SPECIFIED*/, const std::string& prefix = std::string()) { |
no outgoing calls
no test coverage detected