然后调用luaL_register时,所有新建的函数都会继承当前环境 static int SetValue(lua_State *L) { // Lua传递的值,先检查参数 luaL_checkinteger(L, ...
確定! 回上一頁