Bazaar developer reference

CvDllUnit::IncrementReference()

Defined in
CvDllUnit.cpp, line 39
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_IncrementReference

Hooks

static bool BeforeCvDllUnit_IncrementReference(CvDllUnit* self, unsigned int& result);static void AfterCvDllUnit_IncrementReference(CvDllUnit* self, unsigned int& result);static unsigned int ReplaceCvDllUnit_IncrementReference(unsigned int (*original)(CvDllUnit*), CvDllUnit* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_IncrementReference::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_IncrementReference);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_IncrementReference::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_IncrementReference);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_IncrementReference::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_IncrementReference);

Code

39unsigned int CvDllUnit::IncrementReference()40{41	++m_uiRefCount;42	return m_uiRefCount;43}

Called by