Guest User


a guest
Jul 17th, 2019
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 ); }
RAW Paste Data