Deprecated
Retrieve the given name for a specified function.
Use JS_GetFunctionId instead.
const char * JS_GetFunctionName(JSFunction *fun);
| Name | Type | Description |
|---|---|---|
fun |
JSFunction * |
Pointer to a JS function from which to derive the name. |
JS_GetFunctionName retrieves the function name associated with a function pointer, fun. The return value is either the name of a function, or the string "anonymous", which indicates that the function was not assigned a name when created.
The pointer returned by this function is valid only as long as the specified function, fun, is in existence.
Page last modified 20:10, 21 Aug 2008 by Jorend