%s\n", lua_tostring(L, -1)); } //分别获取全局变量w,h的值并压入栈顶 lua_getglobal(L, "w"); lua_getglobal(L, "h"); int w = lua_tointeger(L, -2); ...
確定! 回上一頁