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

Developer

API Reference

ILUADEBUG_GETINFOCURRENTLINE()

Brew Release
Brew MP 1.0.2
See Also
ILuaDebug_GetInfo(), ILuaDebug_GetInfoLineDefined()
Description
Returns the current line number where the given function is executing.
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.
Interface
Prototype
  •    int ILuaDebug_GetInfoCurrentLine(ILuaDebug *pif, boolean bIsFunction)
    
Return
  • The current line number where the function is executing. If no line information is available, returns (-1).