diff options
Diffstat (limited to 'src/emu/netlist/plib/palloc.h')
-rw-r--r-- | src/emu/netlist/plib/palloc.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/emu/netlist/plib/palloc.h b/src/emu/netlist/plib/palloc.h index badbc681486..26f76255e76 100644 --- a/src/emu/netlist/plib/palloc.h +++ b/src/emu/netlist/plib/palloc.h @@ -8,9 +8,26 @@ #ifndef PALLOC_H_ #define PALLOC_H_ -#include <cstdio> +#include <exception> #include "pconfig.h" +#include "pstring.h" + +//============================================================ +// exception base +//============================================================ + +class pexception : public std::exception +{ +public: + pexception(const pstring &text); + virtual ~pexception() throw() {} + + const pstring &text() { return m_text; } + +private: + pstring m_text; +}; //============================================================ // Memory allocation |