static int mytest(lua_State *L) { //获取上值 int upv = (int)lua_tonumber(L, lua_upvalueindex(1)); printf("%d\n", upv); upv += 5;
確定! 回上一頁