使用luaL_checkudata宏替换lua_touserdata函数. Student** s = (Student**)luaL_checkudata(L, 1, "StudentClass");. 除了可以转换userdata之外,还 ...
確定! 回上一頁