feat(lua): use vim.empty_dict() for empty return value in new api functions (#22737)

This commit is contained in:
bfredl 2023-03-20 16:16:15 +01:00 committed by GitHub
parent d3ac5a342d
commit 4cba53e09e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -619,9 +619,10 @@ local function process_function(fn)
}
]], return_type))
else
local special = (fn.since ~= nil and fn.since < 11)
write_shifted_output(output, string.format([[
nlua_push_%s(lstate, ret, true);
]], return_type))
nlua_push_%s(lstate, ret, %s);
]], return_type, tostring(special)))
end
write_shifted_output(output, string.format([[