Bazaar developer reference

CustomMods::eventAccumulator(int &, const char *, const char *, ...)

Defined in
CustomMods.cpp, line 94
Class
CustomMods
Not a hook point
variadic

Code

94int CustomMods::eventAccumulator(int &iValue, const char* szName, const char* p, ...) {95	CvLuaArgsHandle args;9697	va_list vl;98	va_start(vl, p);99100	for (const char* it = p; *it; ++it) {101		if (*it == 'b') {102			// It's a boolean103			args->Push(va_arg(vl, bool));104		} else if (*it == 'i') {105			// It's an int106			args->Push(va_arg(vl, int));107		} else {108			// Assume it's a string (char *)109			char* s = va_arg(vl, char*);110			args->Push(s, strlen(s));111			break;112		}113	}114115	va_end(vl);116117	return eventAccumulator(iValue, szName, args);118}

Calls

Called by