From c0710ea402b8d78b70006f0cc4f7d5fbc2225f4c Mon Sep 17 00:00:00 2001 From: Voycawojka Date: Wed, 5 Oct 2022 16:57:14 +0200 Subject: Make second param of ffi.gc optional --- meta/template/ffi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/template/ffi.lua') 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 -- cgit v1.2.3