[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How do I eval a string and get its results on the stack?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 7 Apr 2006 15:51:26 -0300
> 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.
Try
Lua_EvalString(lua, "return two()");