02-12-2014, 04:34 PM
The file is auto-generated, by the ToLua+ program. It scans the header files and creates Lua bindings for specifically marked classes and functions - that's what all the "// tolua_export" comments are for.
Normally to export a function to the Lua API, you need to mark it with the comment, or make sure it is inside between "// tolua_begin" and "// tolua_end". Then, if you're on windows, you need to manually update the Bindings file, by running script file $/src/Bindings/AllToLua.bat. Linux build system should take care of this step automatically.
Normally to export a function to the Lua API, you need to mark it with the comment, or make sure it is inside between "// tolua_begin" and "// tolua_end". Then, if you're on windows, you need to manually update the Bindings file, by running script file $/src/Bindings/AllToLua.bat. Linux build system should take care of this step automatically.