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

Developer

API Reference

ILUA_WHERE()

Brew Release
Brew MP 1.0.2
See Also
ILuaEx_Error(), ILuaEx_ErrorMsg()
Description
Pushes onto the stack a string identifying the current position of the control at level nLevel in the call stack. Typically this string has the following format:
     chunkname:currentline:

This function is used to build a prefix for error messages.
Params
pif
[]:
a pointer to the ILua object
nLevel
[]:
the level in the call stack, starting with 0 for the current running function, 1 for the function that called, etc.
Interface
Prototype
  •    void ILua_Where(ILua *pif, int nLevel)