Mixing C++ and Lua

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
cyod
Posts: 36
Joined: Fri Apr 29, 2005 5:46 am

Mixing C++ and Lua

Post by cyod »

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.
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

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.
Post Reply