Calling a function in Lua 5.0 from C++

Started by
0 comments, last by Chocoboko 20 years, 10 months 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