Windows2000/private/shell/applets/discover/crtfree.h
2020-09-30 17:12:32 +02:00

20 lines
342 B
C

// REMOVES THE BURDEN OF THE CRTs
#pragma intrinsic(memcpy)
#pragma intrinsic(memcmp)
#pragma intrinsic(memset)
void * __cdecl operator new(size_t nSize)
{
return (LPVOID)GlobalAlloc(GPTR, nSize);
}
void __cdecl operator delete(LPVOID object)
{
GlobalFree((HGLOBAL)object);
}
extern "C" int __cdecl _purecall(void) {return 0;}