view include/TaskManager/base.h @ 135:ac436cebae2a draft

remove xml file
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Thu, 27 Nov 2008 16:19:50 +0900
parents 028ffc9c0375
children 1f7c46e52ab9
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