diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-10-09 14:01:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-09 14:01:54 +0800 |
commit | 6282a10e8da3915fb477c7c7abe53e53806dd0e5 (patch) | |
tree | c28a2ef498763714e2bb66fbd9648263ba931023 /meta/template/ffi.lua | |
parent | a64871c9ebe79a43e389b712ed76ec4d537961aa (diff) | |
parent | c0710ea402b8d78b70006f0cc4f7d5fbc2225f4c (diff) | |
download | lua-language-server-6282a10e8da3915fb477c7c7abe53e53806dd0e5.zip |
Merge pull request #1612 from Voycawojka/ffi-gc-type-definition
Make second param of ffi.gc optional
Diffstat (limited to 'meta/template/ffi.lua')
-rw-r--r-- | meta/template/ffi.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/template/ffi.lua b/meta/template/ffi.lua index 833232d4..0d726c1e 100644 --- a/meta/template/ffi.lua +++ b/meta/template/ffi.lua @@ -57,7 +57,7 @@ function ffi.cast(ct, init) end function ffi.metatype(ct, metatable) end ---@param cdata ffi.cdata* ----@param finalizer function +---@param finalizer? function ---@return ffi.cdata* cdata function ffi.gc(cdata, finalizer) end |