UTIL_FunctionFromName

From Valve Developer Community
Revision as of 15:25, 2 November 2021 by Amicdict (talk | contribs) (Created page with "{{lang|UTIL FunctionFromName|title=<code>UTIL_FunctionFromName</code>}} {{ent|UTIL_FunctionFromName}} is a UTIL function that returns the function pointer, from a data map...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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 );