Developer

API Reference

ILuaDebug_GetInfoName()

Brew Release
Brew MP 1.0.2
See Also
ILuaDebug_GetInfo(), ILuaDebug_GetInfoNameWhat()
Description
Returns a reasonable name of the given function. Because functions in Lua are first-class values, they do not have a fixed name. This function will attempt to check how the function was called to find a suitable name.
Parameters
  • pif
    []:
    a pointer to the ILuaDebug interface
  • bIsFunction
    []:
    If TRUE, returns information about the function at the top of the stack. If FALSE, returns information about the current function invocation, and ILuaDebug_GetStack() should have been called just prior.
Interface
Prototype
   const char *ILuaDebug_GetInfoName(ILuaDebug *pif, boolean bIsFunction)
Return
The name of the function, if it was able to be determined; otherwise NULL.
  • Follow