Complete disaster-recovery snapshot: engine/game source, game data assets, VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive. Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false, no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
29 lines
553 B
C++
29 lines
553 B
C++
/***
|
|
*new.cxx - defines C++ new routine
|
|
*
|
|
* Copyright (c) 1990-1998, Microsoft Corporation. All rights reserved.
|
|
*
|
|
*Purpose:
|
|
* Defines C++ new routine.
|
|
*
|
|
*******************************************************************************/
|
|
|
|
|
|
#include <cruntime.h>
|
|
#include <malloc.h>
|
|
#include <new.h>
|
|
#include <stdlib.h>
|
|
#ifdef WINHEAP
|
|
#include <winheap.h>
|
|
#else /* WINHEAP */
|
|
#include <heap.h>
|
|
#endif /* WINHEAP */
|
|
|
|
void * operator new( unsigned int cb )
|
|
{
|
|
void *res = _nh_malloc( cb, 1 );
|
|
|
|
return res;
|
|
}
|
|
|