3 * Iter Vehemens ad Necem (IVAN)
4 * Copyright (C) Timo Kiviluoto
5 * Released under the GNU General
8 * See LICENSING which should be included
9 * along with this file for more details
16 #include <exception> // for std::bad_alloc
19 /*#include "ivancommon.h"*/
22 void *operator new (std::size_t size
) throw (std::bad_alloc
) {
23 void *p
= malloc(size
+1);
24 if (!p
) throw std::bad_alloc(); // ANSI/ISO compliant behavior
26 //fprintf(stderr, "GLOBAL NEW!\n");
31 void operator delete (void *p
) throw () {
33 //fprintf(stderr, "GLOBAL DELETE!\n");