lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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()");