mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 18:45:38 +00:00
Fixed a couple more line endings
This commit is contained in:
parent
1ad9b234f0
commit
d03a4c2c7c
3 changed files with 28 additions and 26 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -16,3 +16,5 @@ openmw.cfg
|
||||||
Doxygen
|
Doxygen
|
||||||
.thumbnails
|
.thumbnails
|
||||||
resources
|
resources
|
||||||
|
mwcompiler
|
||||||
|
mwinterpreter
|
||||||
|
|
|
@ -1,32 +1,32 @@
|
||||||
#ifndef COMPILER_EXCEPTION_H_INCLUDED
|
#ifndef COMPILER_EXCEPTION_H_INCLUDED
|
||||||
#define COMPILER_EXCEPTION_H_INCLUDED
|
#define COMPILER_EXCEPTION_H_INCLUDED
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
|
||||||
namespace Compiler
|
namespace Compiler
|
||||||
{
|
{
|
||||||
/// \brief Exception: Error while parsing the source
|
/// \brief Exception: Error while parsing the source
|
||||||
|
|
||||||
class SourceException : public std::exception
|
class SourceException : public std::exception
|
||||||
{
|
{
|
||||||
virtual const char *what() const throw() { return "compile error";}
|
virtual const char *what() const throw() { return "compile error";}
|
||||||
///< Return error message
|
///< Return error message
|
||||||
};
|
};
|
||||||
|
|
||||||
/// \brief Exception: File error
|
/// \brief Exception: File error
|
||||||
|
|
||||||
class FileException : public SourceException
|
class FileException : public SourceException
|
||||||
{
|
{
|
||||||
virtual const char *what() const throw() { return "can't read file"; }
|
virtual const char *what() const throw() { return "can't read file"; }
|
||||||
///< Return error message
|
///< Return error message
|
||||||
};
|
};
|
||||||
|
|
||||||
/// \brief Exception: EOF condition encountered
|
/// \brief Exception: EOF condition encountered
|
||||||
|
|
||||||
class EOFException : public SourceException
|
class EOFException : public SourceException
|
||||||
{
virtual const char *what() const throw() { return "end of file"; }
|
{ virtual const char *what() const throw() { return "end of file"; }
|
||||||
///< Return error message
|
///< Return error message
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -35,4 +35,4 @@ namespace Compiler
|
||||||
<< " " << message << std::endl;
|
<< " " << message << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
StreamErrorHandler::StreamErrorHandler (std::ostream& ErrorStream) : mStream (ErrorStream) {}
}
|
StreamErrorHandler::StreamErrorHandler (std::ostream& ErrorStream) : mStream (ErrorStream) {}}
|
||||||
|
|
Loading…
Reference in a new issue