How can I pass variable from C++ code to Lua script, and get that variable from Lua in turn

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.

By the functions bound to lua, you can get the value back.

Any example code, I want to make sure I do it right.

I am working on it ….Later