UTIL_FunctionFromName

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)

UTIL_FunctionFromName is a UTIL function that returns the function pointer, from a data map, that has a matching function name (the key).

Function Declaration

//-----------------------------------------------------------------------------
// Purpose: Search the datamap for a function named pName
//			This is used to save/restore function pointers (convert text back to pointer)
// Input  : *pName - name of the member function
//-----------------------------------------------------------------------------
inputfunc_t *UTIL_FunctionFromName( datamap_t *pMap, const char *pName );