Mixing C++ and Lua
Moderators: Shine, Insert_witty_name
Mixing C++ and Lua
Although there is some discussion reguarding this in the sticky, it is unclear to me if there is some way to call Lua functions from C or vice versa. Thanks in advance for help if I have missed something that is obvoius.
See the Lua manual how to call Lua functions from C, for example http://www.lua.org/manual/5.0/manual.html#3.14 and see the Lua Player source, how to call C functions from Lua. For C++ there are some nice wrappers, which makes it easier, see http://lua-users.org/wiki/LuaAddons for more information.