Subversion Repositories Filer-Free

Compare Revisions

Regard whitespace Rev 61 → Rev 62

/trunk/filer/new.cc
New file
0,0 → 1,28
// 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)
{
return osmodule_alloc(size);
}
 
void operator delete(void* block)
{
osmodule_free(block);
}
 
void* operator new[](size_t size)
{
return osmodule_alloc(size);
}
 
void operator delete[](void* block)
{
osmodule_free(block);
}