luaL_error(L,"pcall wrong %s",lua_tostring(L,-1)); } luaL_checktype(L,1,LUA_TTABLE); int n=lua_objlen(L,1); printf("n = %d\n",n); lua_pushstring(L,"ee"); lua_rawseti(L,1,5); //t[n]=v,n為第三個(gè)參數(shù),v是棧頂元素 n=lua_objlen(L,1); printf("n = %d\n",n)...
www.dbjr.com.cn/article/692...htm 2025-5-20