mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-09 21:44:15 +00:00
Do not create linkents in client library to prevent possible name collision.
This commit is contained in:
parent
456b52f31e
commit
81fe047f9a
@ -108,7 +108,11 @@ typedef int BOOL;
|
|||||||
// The _declspec forces them to be exported by name so we can do a lookup with GetProcAddress()
|
// The _declspec forces them to be exported by name so we can do a lookup with GetProcAddress()
|
||||||
// The function is used to intialize / allocate the object for the entity
|
// The function is used to intialize / allocate the object for the entity
|
||||||
|
|
||||||
|
#if defined(CLIENT_DLL)
|
||||||
|
#define LINK_ENTITY_TO_CLASS(mapClassName,DLLClassName)
|
||||||
|
#else // CLIENT_DLL
|
||||||
#define LINK_ENTITY_TO_CLASS(mapClassName,DLLClassName) extern "C" EXPORT void mapClassName( entvars_t *pev ); void mapClassName( entvars_t *pev ) { GetClassPtr( (DLLClassName *)pev ); }
|
#define LINK_ENTITY_TO_CLASS(mapClassName,DLLClassName) extern "C" EXPORT void mapClassName( entvars_t *pev ); void mapClassName( entvars_t *pev ) { GetClassPtr( (DLLClassName *)pev ); }
|
||||||
|
#endif // CLIENT_DLL
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conversion among the three types of "entity", including identity-conversions.
|
// Conversion among the three types of "entity", including identity-conversions.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user