[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: How to get the reture value of luaL_dostring
- From: "mos" <mmosquito@...>
- Date: Tue, 11 Apr 2006 22:42:18 +0800
Hi!
I had thought the following will work::
lua_State *L=lua_open();
int error = luaL_dostring(L,"return 10");
printf("%d\n",lua_tonumber(L,-1));
--output
0
not 10. What can I do then?
mos