Newer
Older
Scratch / lockwasher / src / lib / libcpp / libcpp.cc
@Christopher W. Olsen Christopher W. Olsen on 25 Oct 2019 401 bytes Scratch
extern "C" 
{	
#include <stdlib.h>
void __pure_virtual() { while(1); }
void __cxa_pure_virtual() { while(1); }
}

#include <libcpp.h>

void * operator new[](unsigned size)
{
    return malloc(size);
}

void operator delete[](void * ptr)
{
    free(ptr);

    return;
}

void * operator new(unsigned size)
{
    return malloc(size);
}

void operator delete(void * ptr)
{
    free(ptr);

    return;
}