Mercurial > hg > Members > kono > Cerium
view include/TaskManager/base.h @ 193:102dad2949a0
fix
author | gongo@localhost.localdomain |
---|---|
date | Tue, 13 Jan 2009 19:06:13 +0900 |
parents | 1f4c3f3238e6 |
children | bcb81858aa62 |
line wrap: on
line source
#include <new> #include <stdlib.h> #include <stdio.h> #ifdef __SPU__ //#if 0 # define BASE_NEW_DELETE(T) \ /* override new/detele */ \ static void* operator new(size_t size) { \ if ((int)size == 0) { \ size = 1; \ } \ \ void *ptr = malloc(size); \ return ptr; \ } \ static void operator delete(void* rawMemory, size_t size) { \ free(rawMemory); \ } \ #else # define BASE_NEW_DELETE(T) #endif