From e9d84b53e7c54f84da64967faf36c8b2791579f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Thu, 18 Jul 2019 17:42:31 +0000 Subject: add inet.is_set() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- lua/inet/common.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lua/inet/common.lua (limited to 'lua/inet/common.lua') diff --git a/lua/inet/common.lua b/lua/inet/common.lua new file mode 100644 index 0000000..6a84a13 --- /dev/null +++ b/lua/inet/common.lua @@ -0,0 +1,8 @@ +local M = {} + +function M.get_mt(t) + if type(t) ~= 'table' then return nil end + return getmetatable(t) +end + +return M -- cgit v1.2.1