Revision 64 (by gdshaw@RISCPKG.ORG, 2007/05/21 05:44:33) Disabled exceptions and enabled optimisation to reduce code size.
// This file is part of the free Filer module for RISC OS.
// Copyright � 2007 Graham Shaw.
// Redistribution and modification are permitted under the terms of the
// GNU General Public License (version 2 or any later version).

#include <new>

#include "oslib/osmodule.h"

void* operator new(size_t size,const std::nothrow_t&)
{
	return osmodule_alloc(size);
}

void operator delete(void* block)
{
	osmodule_free(block);
}

void* operator new[](size_t size,const std::nothrow_t&)
{
	return osmodule_alloc(size);
}

void operator delete[](void* block)
{
	osmodule_free(block);
}