//===========================================================================//
// File:	 DLLPlatform.cpp												 //
// Project:  GameOS					                                         //
// Contents: Setup GameOS for running DLL's									 //
//---------------------------------------------------------------------------//
// Date      Who    Modification                                             //
// 02/15/99  AG     Created													 //
//===========================================================================//
#include "DLLPlatform.hpp"


void InitGameOS( HINSTANCE hInstance, HWND hWnd, char* CommandLine )
{
	Platform=Platform_DLL;
	RunFromOtherApp( hInstance, hWnd, CommandLine );
}

//
// Memory management API's only occur in DLLPlatform project.
//
void* __cdecl operator new (size_t size, HGOSHEAP )
{
	return malloc( size );
}

void* __cdecl operator new (size_t size)
{
	// 0xffffffff specifies use of the heap set by CurrentHeapLevel
	return malloc( size  );
}

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

