Avoid linking to libstdc++ on Linux.
4 // h_export.cpp - main exported DLL functionality
6 // From SDK dlls/h_export.cpp:
10 * Copyright (c) 1999, 2000 Valve LLC. All rights reserved.
12 * This product contains software technology licensed from Id
13 * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
14 * All Rights Reserved.
16 * Use, distribution, and modification of this source code and/or resulting
17 * object code is restricted to non-commercial enhancements to products from
18 * Valve LLC. All other use, distribution, or modification is prohibited
19 * without written permission from Valve LLC.
24 ===== h_export.cpp ========================================================
26 Entity classes exported by Halflife.
35 //! Holds engine functionality callbacks
36 enginefuncs_t g_engfuncs;
37 globalvars_t *gpGlobals;
39 // Receive engine function table from engine.
40 // This appears to be the _first_ DLL routine called by the engine, so we
41 // do some setup operations here.
42 void WINAPI GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals )
44 memcpy(&g_engfuncs, pengfuncsFromEngine, sizeof(enginefuncs_t));
46 // NOTE! Have to call logging function _after_ copying into g_engfuncs, so
47 // that g_engfuncs.pfnAlertMessage() can be resolved properly, heh. :)
48 UTIL_LogPrintf("[%s] dev: called: GiveFnptrsToDll\n", Plugin_info.logtag);
51 // Avoid linking to libstdc++
53 extern "C" void __cxa_pure_virtual(void)
57 void *operator new(size_t size)
62 void *operator new[](size_t size)
67 void operator delete(void *ptr)
72 void operator delete[](void * ptr)