/* Print a parser error, using the source file name and line number set by a previous call to SetParserPosition(). */
VOID ParserError(UINT32 MessageCode, CHAR8 *Text, CHAR8 *MsgFmt,...)
/* Print a parser error, using the source file name and line number set by a previous call to SetParserPosition(). */
VOID ParserError(UINT32 MessageCode, CHAR8 *Text, CHAR8 *MsgFmt,...)
{
  va_list List;
  if (mPrintLimitsSet) {
    if (mMaxWarningsPlusErrors != 0) {
      if (mErrorCount + mWarningCount > mMaxWarningsPlusErrors) {
        PrintLimitExceeded ();
        return ;
      }
    }
    if (mMaxErrors != 0) {
      if (mErrorCount > mMaxErrors) {
        PrintLimitExceeded ();
        return ;
      }
    }
  }
  mErrorCount++;
  va_start (List, MsgFmt);
  PrintMessage ("ERROR", mSourceFileName, mSourceFileLineNum, MessageCode, Text, MsgFmt, List);
  va_end (List);
}