Files
wow-weakauras/Meta/api/newproxy.lua
2024-11-07 23:12:37 +01:00

7 lines
705 B
Lua

---@diagnostic disable: missing-return, lowercase-global
---@param boolean boolean
---@param userdata userdata
---@return userdata userdata
---Creates a zero-length userdata with an optional metatable.. newproxy is a experimental, undocumented and unsupported function in the Lua base library. It can be used to create a zero-length userdata, with a optional proxy. This function allows you to bypass the table type restriction on setmetatable, and thus create just a metatable. One of the main benefits from doing this is that you don't have to take the full overhead of creating a dummy table, and it's the only object that honors the metamethod __len.
function newproxy(boolean, userdata) end