How to access Lua return values?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to access Lua return values?

zgulser

Hi everybody.

I'm very new to Lua so my question might be quite trivial. Sorry if it is..

Currently, I'm trying to call a C++ function from lua. It seems it works. I mean Lua script calls the C++ function.. But the problem is, I couldn't find a way to reach function return values. I could only return them. Since the function is static as you all know, I couldn't assign it yo any member.

Please help!