engine_getscriptinfo (void* address,char** name)
LC Returns the name of a lite-C script function.
Can be used for debugging or similar purposes.
Returns:
Function pointer, or NULL when the address is not within a valid function.
Parameters:
address - code address of or within the function.
name
- address of a char* pointer that is set to the name of the function.
Example:
function foo() { beep(); }
...
char* funcname;
engine_getscriptinfo(foo,&funcname);
See also:
engine_open, engine_getvarinfo, engine_getscript, engine_gettaskinfo
► latest
version online