Initial commit

This commit is contained in:
2024-12-16 13:13:08 +01:00
commit c8d4f32d5d
3093 changed files with 18304 additions and 0 deletions

7
api/newproxy.lua Normal file
View 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