kolibrios/programs/develop/libraries/menuetlibc/src/libcpp/delete.cpp
right-hearted 6496d04506 Adding menuetlibc back to its place in /programs/develop/libraries
This version of menuetlibc was taken from revision 4743, right before I made any changes

git-svn-id: svn://kolibrios.org@4973 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-06-12 10:43:21 +00:00

38 lines
550 B
C++

extern "C" {
#include<assert.h>
}
extern "C" void free(void *);
extern "C" void __menuet__sys_exit(void);
void operator delete(void * ptr)
{
free(ptr);
}
void operator delete[](void * ptr)
{
free(ptr);
}
static bool pure_virtual_call=false;
extern "C" {
extern "C" void __menuet__sys_exit();
void __cxa_pure_virtual(void)
{
assert(!pure_virtual_call);
__menuet__sys_exit();
}
void _pure_virtual(void)
{
assert(!pure_virtual_call);
__menuet__sys_exit();
}
void __pure_virtual(void)
{
assert(!pure_virtual_call);
__menuet__sys_exit();
}
}