Example #1
0
 /// <summary>
 /// Logs the specified warning.
 /// </summary>
 /// <param name="warningNumber">The warning number.</param>
 /// <param name="fle">The file in which the warning occured.</param>
 /// <param name="args">The parameters for the formatting.</param>
 public static void Warning(ulong warningNumber, OMakeFile fle, params object[] args)
 {
     string warn = NLS.GetWarnString(warningNumber.ToString().PadLeft(5, '0'));
     // The check is only here because I'm lazy when I type.
     if (args != null)
         warn = string.Format(warn, args);
     CConsole.WriteLine(fle.Filename + ":" + fle.LineNumber.ToString() + " " + warnString + " OM" + warningNumber.ToString() + ": " + warn);
     WarningCount++;
 }
Example #2
0
 /// <summary>
 /// Logs the specified error.
 /// </summary>
 /// <param name="errorNumber">The error number.</param>
 /// <param name="fle">The file in which the error occured.</param>
 /// <param name="args">The parameters for the formatting.</param>
 public static void Error(ulong errorNumber, OMakeFile fle, params object[] args)
 {
     string err = NLS.GetErrString(errorNumber.ToString().PadLeft(5, '0'));
     // The check is only here because I'm lazy when I type.
     if (args != null)
         err = string.Format(err, args);
     CConsole.WriteLine(fle.Filename + ":" + fle.LineNumber.ToString() + " " + errString + " OM" + errorNumber.ToString() + ": " + err);
     ErrorCount++;
 }