I spotted a function called “CCLuaEngine::defaultEngine()->push….()” to push something into Lua’s stack. I guess this is a way to pass something to Lua from C++. Also how can I read it back from Lua script.
An example code would make it clear for this question. Thank you.