API Reference


Brew Release
Brew MP 1.0.2
See Also
ILua_Dump(), ILua_PCall()
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.
  • 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
   AEEResult ILua_Load(ILua *pif, const char *psChunk,
                       int nSize, const char *pszChunkName)
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.
  • Follow