Re: How do I eval a string and get its results on the stack?
On Fri, Apr 07, 2006 at 03:51:26PM -0300, Luiz Henrique de Figueiredo wrote:
> > I would like to be able to do in C:
> > Lua_EvalString(lua, "two()");
> > and then see 2 on the top of the lua stack.
> Lua_EvalString(lua, "return two()");
Thanks, I'm so used to every expression resulting in a value, that never
occurred to me, works wonderfully.