From 78ef96336e916fe0adbc313cbf706c413fcc75aa Mon Sep 17 00:00:00 2001 From: couriersud Date: Wed, 4 Jan 2017 18:00:38 +0100 Subject: Added SIGFPE enabling code to plib/pexception.*. Moved plib exceptions into these files as well. The code uses which is part of c++11 standard. Non-standard glib extensions are currently only used on linux and (i386 or x86_64). (nw) --- src/lib/netlist/plib/palloc.cpp | 38 -------------------------------------- 1 file changed, 38 deletions(-) (limited to 'src/lib/netlist/plib/palloc.cpp') 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 -- cgit v1.2.3-70-g09d2