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

21 lines
353 B
C

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