Initial commit
This commit is contained in:
7
api/newproxy.lua
Normal file
7
api/newproxy.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
---@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
|
Reference in New Issue
Block a user