source: Sophya/trunk/SophyaLib/BaseTools/pexceptions.cc@ 582

Last change on this file since 582 was 512, checked in by ansari, 26 years ago

using namespace INUTILE car machdefs.h le fait cmv 25/10/99

File size: 436 bytes
RevLine 
[242]1#include "pexceptions.h"
2#include <iostream.h>
3
4void PFailHandler(void);
5
[269]6// egcs ne semble pas connaitre set_new_handler (Reza 26/04/99)
7#ifdef __GNUG__
8void PFailHandler(void) {}
9void InitFailNewHandler() {}
10#else
11
[242]12void PFailHandler(void)
13{
14 set_new_handler(NULL);
15 cerr << "Allocation exception -- out of memory" << endl;
16 throw(AllocationError("new"));
17}
18
19void InitFailNewHandler()
20{
21 set_new_handler(PFailHandler);
22}
23
[269]24#endif
Note: See TracBrowser for help on using the repository browser.