Skip to content
kamih edited this page Jul 14, 2012 · 1 revision

When loading Lua strings and files, and running Lua functions, Lua can encounter errors in your script. When this happens, LuaUtils will pass a message containing information about the error (and its location in the Lua script) to the error callback. It will also set a global error flag to true.

To get and reset this flag, use the LuaUtils::LuaGetErrorFlag function.

To set the error callback that LuaUtils will use, use the LuaUtils::LuaSetErrorCB function.

Clone this wiki locally