Skip to content

Commit

Permalink
删除多余的nupvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Sep 22, 2024
1 parent 01d5c26 commit 6365446
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions binding/lua_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,17 +516,14 @@ DEFINE_LUAOPEN(socket)
namespace bee::lua {
template <>
struct udata<net::fd_t> {
static inline int nupvalue = 1;
static inline auto metatable = bee::lua_socket::fd::metatable;
};
template <>
struct udata<lua_socket::fd_no_ownership> {
static inline int nupvalue = 1;
static inline auto metatable = bee::lua_socket::fd::metatable_no_ownership;
};
template <>
struct udata<net::endpoint> {
static inline int nupvalue = 0;
static inline auto metatable = bee::lua_socket::endpoint::metatable;
};
}

0 comments on commit 6365446

Please sign in to comment.