summaryrefslogtreecommitdiffstats
path: root/src/LastError.h
diff options
context:
space:
mode:
authorsagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2009-05-08 15:54:32 (GMT)
committersagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2009-05-08 15:54:32 (GMT)
commitd3adcbbc0c51ab693e7fcbd95569ffd548128d02 (patch)
tree2d821e16fcb0b09ae7c43629366499bd1a4dc33a /src/LastError.h
downloadcv2pdb-d3adcbbc0c51ab693e7fcbd95569ffd548128d02.zip
cv2pdb-d3adcbbc0c51ab693e7fcbd95569ffd548128d02.tar.gz
cv2pdb-d3adcbbc0c51ab693e7fcbd95569ffd548128d02.tar.bz2
Diffstat (limited to 'src/LastError.h')
-rw-r--r--src/LastError.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/LastError.h b/src/LastError.h
new file mode 100644
index 0000000..b7b6f27
--- /dev/null
+++ b/src/LastError.h
@@ -0,0 +1,24 @@
+// Convert DMD CodeView debug information to PDB files
+// Copyright (c) 2009 by Rainer Schuetze, All Rights Reserved
+//
+// License for redistribution is given by the Artistic License 2.0
+// see file LICENSE for further details
+
+#ifndef __LASTERROR_H__
+#define __LASTERROR_H__
+
+class LastError
+{
+public:
+ LastError() : lastError("") {}
+
+ bool setError(const char* msg) { lastError = msg; return false; }
+ const char* getLastError() const { return lastError; }
+ bool hadError() const { return lastError != 0 && *lastError; }
+
+private:
+ const char* lastError;
+};
+
+
+#endif //__LASTERROR_H__ \ No newline at end of file