Setup an error handler for the global new operator. More...
Setup an error handler for the global new operator.
Definition in file new.C.
#include <new>
#include <iostream>
#include <cstdlib>
Go to the source code of this file.
Namespaces | |
namespace | Foam |
Namespace for OpenFOAM. | |
Functions | |
void | newError () |
Variables | |
void(* | old_new_handler )() = std::set_new_handler(newError) |