Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. // This is the glue that hooks .MAP entity class names to our CPP classes
  2. // The _declspec forces them to be exported by name so we can do a lookup with GetProcAddress()
  3. // The function is used to intialize / allocate the object for the entity
  4. #define LINK_ENTITY_TO_CLASS(mapClassName,DLLClassName) \
  5.     extern "C" UTIL_DLLEXPORT void mapClassName( entvars_t *pev ); \
  6.     void mapClassName( entvars_t *pev ) { GetClassPtr( (DLLClassName *)pev ); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement