Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is the glue that hooks .MAP entity class names to our CPP classes
- // 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
- #define LINK_ENTITY_TO_CLASS(mapClassName,DLLClassName) \
- extern "C" UTIL_DLLEXPORT void mapClassName( entvars_t *pev ); \
- void mapClassName( entvars_t *pev ) { GetClassPtr( (DLLClassName *)pev ); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement