summaryrefslogtreecommitdiffstats
path: root/src/LastError.h
blob: 4cbb0b9924dae792a37f7537b4b54039785b160c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Convert DMD CodeView debug information to PDB files

// Copyright (c) 2009-2010 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__