diff options
| author | Alexander Gavrilov | 2012-04-05 19:55:59 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-04-05 19:55:59 +0400 |
| commit | 9eed9f0d246f44a51266a05e0107ea22fea54e73 (patch) | |
| tree | 72eb99e5ca85311b7a486f8e4036b9dd703ae3d4 /library/MiscUtils.cpp | |
| parent | 28a741082f8b0981806b8a63589279627bd8e39e (diff) | |
| download | dfhack-9eed9f0d246f44a51266a05e0107ea22fea54e73.tar.gz dfhack-9eed9f0d246f44a51266a05e0107ea22fea54e73.tar.bz2 dfhack-9eed9f0d246f44a51266a05e0107ea22fea54e73.tar.xz | |
Wrap a few utility functions defined on the c++ side for lua.
Diffstat (limited to 'library/MiscUtils.cpp')
| -rw-r--r-- | library/MiscUtils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/MiscUtils.cpp b/library/MiscUtils.cpp index 9b26e2a6..b9ff35cf 100644 --- a/library/MiscUtils.cpp +++ b/library/MiscUtils.cpp @@ -25,6 +25,7 @@ distribution. #include "Internal.h" #include "Export.h" #include "MiscUtils.h" +#include "Error.h" #ifndef LINUX_BUILD #include <Windows.h> @@ -39,6 +40,10 @@ distribution. #include <sstream> #include <map> +const char *DFHack::Error::NullPointer::what() const throw() { + return "NULL pointer access"; +} + std::string stl_sprintf(const char *fmt, ...) { va_list lst; va_start(lst, fmt); |
