#include "allocator_shim/allocator_stub.h"
#if !defined(LIBPEERCONNECTION_IMPLEMENTATION) || defined(LIBPEERCONNECTION_LIB)
#error "Only compile the allocator proxy with the shared_library implementation"
#endif
#if defined(OS_MACOSX) || defined(OS_ANDROID)
#error "The allocator proxy isn't supported (or needed) on mac or android."
#endif
extern AllocateFunction g_alloc;
extern DellocateFunction g_dealloc;
void* operator new(std::size_t n) throw() {
return g_alloc(n);
}
void operator delete(void* p) throw() {
g_dealloc(p);
}