-
Notifications
You must be signed in to change notification settings - Fork 44
/
cpp.hint
5 lines (5 loc) · 874 Bytes
/
cpp.hint
1
2
3
4
5
// Hint files help the Visual Studio IDE interpret Visual C++ identifiers
// such as names of functions and macros.
// For more information see https://go.microsoft.com/fwlink/?linkid=865984
#define LINK_ENTITY_TO_CLASS(mapClassName, DLLClassName) LINK_ENTITY_TO_REMINDER(DLLClassName) EntityMetaData GetEntityMetaDataFor(TypeIdentity<DLLClassName>) { return { REMEMBER_TO_ADD_IN_cbase_typelist_h_<DLLClassName>(), #mapClassName, WeaponEntityPlaceHolderFactory<DLLClassName>() }; }
#define LINK_ENTITY_TO_CLASS(mapClassName, DLLClassName) extern "C" EXPORT void mapClassName(entvars_t *pev) { LuaGetClassPtr(#mapClassName, pev) || (GetClassPtr<DLLClassName>(pev), true); } LINK_ENTITY_TO_REMINDER(DLLClassName) EntityMetaData GetEntityMetaDataFor(TypeIdentity<DLLClassName>) { return { REMEMBER_TO_ADD_IN_cbase_typelist_h_<DLLClassName>(), #mapClassName, &mapClassName }; }