| 614 | } |
| 615 | |
| 616 | void HLSLTokenizer::Error(const char* format, ...) |
| 617 | { |
| 618 | // It's not always convenient to stop executing when an error occurs, |
| 619 | // so just track once we've hit an error and stop reporting them until |
| 620 | // we successfully bail out of execution. |
| 621 | if (m_error) { |
| 622 | return; |
| 623 | } |
| 624 | m_error = true; |
| 625 | |
| 626 | va_list args; |
| 627 | va_start(args, format); |
| 628 | Log_ErrorArgList(format, args, m_fileName, m_lineNumber); |
| 629 | va_end(args); |
| 630 | |
| 631 | // can log error/warning/info messages |
| 632 | //bool isError = true; |
| 633 | |
| 634 | // Gcc/lcang convention (must be absolute filename for clickthrough) |
| 635 | // Visual Stuidio can pick up on this formatting too |
| 636 | //Log_Error("%s:%d: %s: %s\n", m_fileName, m_lineNumber, isError ? "error" : "warning", buffer); |
| 637 | } |
| 638 | |
| 639 | void HLSLTokenizer::GetTokenName(char buffer[s_maxIdentifier]) const |
| 640 | { |
nothing calls this directly
no test coverage detected