File:  [RetroPC.NET] / xmil / adv / agb / advlibc / include / cxx.h
Revision 1.1: download - view: text, annotated - select for diffs
Fri Feb 4 15:42:08 2005 JST (20 years, 9 months ago) by yui
Branches: MAIN
CVS tags: HEAD
RetroPC CVS restarting 2005/02/04 (T.Yui)

#ifndef _ADVLIBC_CXX_
#define _ADVLIBC_CXX_

#include	"./advtypes.h"
#include	"./memmng.h"

#ifdef __cplusplus

inline void *operator new(unsigned int size) {

	return(::memmng_alloc(size));
}

inline void operator delete(void *ptr) {

	::memmng_free(ptr);
}

inline void *operator new[](unsigned int size) {

	return(::memmng_alloc(size));
}

inline void operator delete[](void *ptr) {

	::memmng_free(ptr);
}

extern "C" {
void __cxa_pure_virtual(void);
void _pure_virtual(void);
void __pure_virtual(void);
}

#endif

#endif

RetroPC.NET-CVS <cvs@retropc.net>