UTIL FunctionToName: Difference between revisions
Jump to navigation
Jump to search

(Created page with "{{lang|UTIL FunctionToName|title=<code>UTIL_FunctionToName</code>}} {{ent|UTIL_FunctionToName}} is a UTIL function that attempts to return the function name as a constant...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{lang|UTIL FunctionToName|title=<code>UTIL_FunctionToName</code>}} | {{lang|UTIL FunctionToName|title=<code>UTIL_FunctionToName</code>}} | ||
{{ent|UTIL_FunctionToName}} is a [[UTIL]] function that | {{ent|UTIL_FunctionToName}} is a [[UTIL]] function that searches for a function pointer's function name as a constant C-string from a data map. | ||
{{todo|Add examples.}} | {{todo|Add examples.}} | ||
==Function Declaration== | ==Function Declaration== | ||
<source lang=cpp>extern const char *UTIL_FunctionToName( datamap_t *pMap, inputfunc_t *function );</source> | <source lang=cpp> | ||
//----------------------------------------------------------------------------- | |||
// Purpose: Search this datamap for the name of this member function | |||
// This is used to save/restore function pointers (convert pointer to text) | |||
// Input : *function - pointer to member function | |||
// Output : const char * - function name | |||
//----------------------------------------------------------------------------- | |||
extern const char *UTIL_FunctionToName( datamap_t *pMap, inputfunc_t *function ); | |||
</source> | |||
[[Category:Programming]] | [[Category:Programming]] | ||
[[Category:UTIL]] | [[Category:UTIL]] |
Revision as of 15:19, 2 November 2021


UTIL_FunctionToName is a UTIL function that searches for a function pointer's function name as a constant C-string from a data map.
Todo: Add examples.
Function Declaration
//-----------------------------------------------------------------------------
// Purpose: Search this datamap for the name of this member function
// This is used to save/restore function pointers (convert pointer to text)
// Input : *function - pointer to member function
// Output : const char * - function name
//-----------------------------------------------------------------------------
extern const char *UTIL_FunctionToName( datamap_t *pMap, inputfunc_t *function );