diff options
| author | Alexander Gavrilov | 2012-04-29 21:07:39 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-04-29 21:07:39 +0400 |
| commit | 2303a25bdefab30bea67f32d27d35e5002448e8a (patch) | |
| tree | d5f8ac14a823a504ad64ae30cc0fa2515f410485 /library/MiscUtils.cpp | |
| parent | 9c94b7c1e748743309dae75ec95e374f26624d5f (diff) | |
| download | dfhack-2303a25bdefab30bea67f32d27d35e5002448e8a.tar.gz dfhack-2303a25bdefab30bea67f32d27d35e5002448e8a.tar.bz2 dfhack-2303a25bdefab30bea67f32d27d35e5002448e8a.tar.xz | |
Implement unconstructed building instance creation and linking into world.
For more flexibility, the base api is split into 3 phases:
alloc, setSize, and construct. No support for non-actual
buildings like stockpiles and activity zones at the moment.
Diffstat (limited to 'library/MiscUtils.cpp')
| -rw-r--r-- | library/MiscUtils.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/MiscUtils.cpp b/library/MiscUtils.cpp index b9ff35cf..8658788b 100644 --- a/library/MiscUtils.cpp +++ b/library/MiscUtils.cpp @@ -41,7 +41,11 @@ distribution. #include <map> const char *DFHack::Error::NullPointer::what() const throw() { - return "NULL pointer access"; + return "DFHack::Error::NullPointer"; +} + +const char *DFHack::Error::InvalidArgument::what() const throw() { + return "DFHack::Error::InvalidArgument"; } std::string stl_sprintf(const char *fmt, ...) { |
