Mercurial > hg > Members > kono > Cerium
view include/TaskManager/base.h @ 184:907bda4a1a14
fix
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 06 Jan 2009 15:39:48 +0900 |
parents | 1f4c3f3238e6 |
children | 102dad2949a0 |
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