MCPcopy Create free account
hub / github.com/alecazam/kram / Error

Method Error

hlslparser/src/HLSLTokenizer.cpp:616–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616void 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
639void HLSLTokenizer::GetTokenName(char buffer[s_maxIdentifier]) const
640{

Callers

nothing calls this directly

Calls 1

Log_ErrorArgListFunction · 0.85

Tested by

no test coverage detected