This way your methods become: int A::setB (lua_State* L) { A* a = checkA (L,1) // Macro for luaL_checkudata B* b = checkB (L,2) ...
確定! 回上一頁