Mercurial > hg > Game > Cerium
view include/TaskManager/base.h @ 267:943c2ebe4483 draft
merge 172 264
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 03 Jun 2009 23:58:22 +0900 |
parents | 18c42658e0e7 |
children | 1ff24ca2f016 |
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