forked from KolibriOS/kolibrios
6496d04506
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
38 lines
550 B
C++
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();
|
|
}
|
|
}
|