Mercurial > hg > Game > Cerium
view include/TaskManager/base.h @ 230:56314060907f draft
fix Random
author | gongo@localhost.localdomain |
---|---|
date | Fri, 13 Feb 2009 10:53:58 +0900 |
parents | 1ff24ca2f016 |
children | 7f991471d43f |
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