🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Calling a function in Lua 5.0 from C++

Started by
0 comments, last by Chocoboko 21 years ago
Hi, I am trying to call a function in my Lua script from C++. Here is the Lua code: function callev(x) ev[x].i=ev[x].i + 1; c=ev[x].i; ev[x]:e(); end How could I call "callev" from my C++ code? Thanks.
Advertisement
http://www.lua.org/manual/5.0/manual.html#3.14
It''s cryptic, but what you need is there.

This topic is closed to new replies.

Advertisement