UltimateZoneBuilder/Source/Compilers/CompilerError.cs

67 lines
1.5 KiB
C#
Raw Normal View History

2008-11-11 16:19:50 +00:00
#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Runtime.InteropServices;
using System.Diagnostics;
#endregion
2008-11-13 16:21:11 +00:00
namespace CodeImp.DoomBuilder.Compilers
2008-11-11 16:19:50 +00:00
{
public struct CompilerError
{
// Constants
public const int NO_LINE_NUMBER = -1;
2008-11-11 16:19:50 +00:00
// Members
public string description;
public string filename;
public int linenumber;
// Constructor
public CompilerError(string description)
{
this.description = description;
this.filename = "";
this.linenumber = NO_LINE_NUMBER;
}
// Constructor
public CompilerError(string description, string filename)
{
this.description = description;
this.filename = filename;
this.linenumber = NO_LINE_NUMBER;
}
2008-11-11 16:19:50 +00:00
// Constructor
public CompilerError(string description, string filename, int linenumber)
{
this.description = description;
this.filename = filename;
this.linenumber = linenumber;
}
}
}