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

Developer

API Reference

ILUA_LOAD()

Brew Release
Brew MP 1.0.2
See Also
ILua_Dump(), ILua_PCall()
Description
Loads a string buffer as a Lua chunk, pushing it as a function on top of the stack. This function only loads the chunk and does not run it.
Params
pif
[]:
a pointer to the ILua object
psChunk
[]:
pointer to the string buffer containing the chunk
nSize
[]:
length of the string buffer
pszChunkName
[]:
an optional name for the chunk which will be used for error messages and debug information
Interface
Prototype
  •    AEEResult ILua_Load(ILua *pif, const char *psChunk,
                           int nSize, const char *pszChunkName)
    
Return
  • Returns AEE_SUCCESS if there are no errors and pushes the loaded chunk as a function on top of the stack. Otherwise, pushes an error message and returns one of: AEE_ENOMEMORY: if there was a memory allocation error; AEE_EFAILED: if there was a syntax error during pre-compilation.