Bazaar developer reference

InsertGameDefine(Database::Results &, const char *, int)

Defined in
CvDllDatabaseUtility.cpp, line 46
Hook name
CivHooks::InsertGameDefine

Hooks

static bool BeforeInsertGameDefine(Database::Results& kInsertDefine, const char* szValue, int iValue);static void AfterInsertGameDefine(Database::Results& kInsertDefine, const char* szValue, int iValue);static void ReplaceInsertGameDefine(void (*original)(Database::Results&, const char*, int), Database::Results& kInsertDefine, const char* szValue, int iValue);CivRegisterBefore<CivHooks::InsertGameDefine>(host, &BeforeInsertGameDefine);CivRegisterAfter<CivHooks::InsertGameDefine>(host, &AfterInsertGameDefine);CivRegisterReplace<CivHooks::InsertGameDefine>(host, &ReplaceInsertGameDefine);

Code

45//Just a quick utility function to save from writing lots of verbose code.46void InsertGameDefine(Database::Results& kInsertDefine, const char* szValue, int iValue)47{48	kInsertDefine.Bind(1, szValue);49	kInsertDefine.Bind(2, iValue);50	kInsertDefine.Execute();51	kInsertDefine.Reset();52}

Calls

Called by