diff options
author | 2017-01-04 18:00:38 +0100 | |
---|---|---|
committer | 2017-01-04 18:01:22 +0100 | |
commit | 78ef96336e916fe0adbc313cbf706c413fcc75aa (patch) | |
tree | a7e2965e5e98cd2a502dab35b975aa610c3e1171 /src/lib/netlist/plib/palloc.cpp | |
parent | 85d1aca315bf336ca0f4cc51ba035f1607903cf8 (diff) |
Added SIGFPE enabling code to plib/pexception.*. Moved plib exceptions
into these files as well. The code uses <cfenv> which is part of c++11
standard. Non-standard glib extensions are currently only used on linux
and (i386 or x86_64). (nw)
Diffstat (limited to 'src/lib/netlist/plib/palloc.cpp')
-rw-r--r-- | src/lib/netlist/plib/palloc.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/lib/netlist/plib/palloc.cpp b/src/lib/netlist/plib/palloc.cpp index b90960f953e..2f1131601da 100644 --- a/src/lib/netlist/plib/palloc.cpp +++ b/src/lib/netlist/plib/palloc.cpp @@ -12,44 +12,6 @@ #include "pfmtlog.h" namespace plib { -//============================================================ -// Exceptions -//============================================================ - -pexception::pexception(const pstring text) -{ - m_text = text; -} - -file_e::file_e(const pstring fmt, const pstring &filename) - : pexception(pfmt(fmt)(filename)) -{ -} - -file_open_e::file_open_e(const pstring &filename) - : file_e("File open failed: {}", filename) -{ -} - -file_read_e::file_read_e(const pstring &filename) - : file_e("File read failed: {}", filename) -{ -} - -file_write_e::file_write_e(const pstring &filename) - : file_e("File write failed: {}", filename) -{ -} - -null_argument_e::null_argument_e(const pstring &argument) - : pexception(pfmt("Null argument passed: {}")(argument)) -{ -} - -out_of_mem_e::out_of_mem_e(const pstring &location) - : pexception(pfmt("Out of memory: {}")(location)) -{ -} //============================================================ // Memory pool |