API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ILUADEBUG_GETINFOSOURCE()

Brew Release
Brew MP 1.0.2
See Also
ILuaDebug_GetInfo(), ILuaDebug_GetInfoLineDefined()
Description
Returns the string containing either the function's source or the name of the file containing its source.
Params
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.
bShort
[]:
If TRUE, returns a shortened, "printable" version of the source more suitable for error messages.
Interface
Prototype
  •    const char *ILuaDebug_GetInfoSource(ILuaDebug *pif,
                                           boolean bIsFunction
                                           boolean bShort)
    
Return
  • If the function was defined in a string, then returns that string. Otherwise if the function was defined in a file, this will return the name of the file preceded by "@".