Mercurial > hg > Members > kono > Cerium
view include/TaskManager/base.h @ 347:ee3db22c03b9
error in SceneGraph.[cpp,h]
author | e065746@localhost.localdomain |
---|---|
date | Wed, 08 Jul 2009 15:04:03 +0900 |
parents | bcb81858aa62 |
children |
line wrap: on
line source
#ifndef INCLUDED_BASE_H_ #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 #endif