... static int ltest(lua_State *L) { lua_getfield(L, lua_upvalueindex(1), "a"); cout << lua_tointeger(L, -1) << endl; return 1; } ...
確定! 回上一頁