forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mixing C++ and Lua

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
cyod



Joined: 29 Apr 2005
Posts: 36

PostPosted: Fri Aug 26, 2005 3:36 am    Post subject: Mixing C++ and Lua Reply with quote

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.
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 731
Location: Germany

PostPosted: Sat Aug 27, 2005 7:23 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group