mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 20:08:31 +01:00
Merge pull request #288 from spencercw/vulkan
generator.lua: fix missing void in Vulkan function generation
This commit is contained in:
@@ -128,6 +128,7 @@ local function func_header_impl_generate(FP)
|
|||||||
local cimf = FP.defsT[t.cimguiname]
|
local cimf = FP.defsT[t.cimguiname]
|
||||||
local def = cimf[t.signature]
|
local def = cimf[t.signature]
|
||||||
local addcoment = def.comment or ""
|
local addcoment = def.comment or ""
|
||||||
|
local empty = def.args:match("^%(%)") --no args
|
||||||
if def.constructor then
|
if def.constructor then
|
||||||
-- only vulkan is manually created
|
-- only vulkan is manually created
|
||||||
assert(def.ov_cimguiname=="ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window" or
|
assert(def.ov_cimguiname=="ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window" or
|
||||||
@@ -139,7 +140,6 @@ local function func_header_impl_generate(FP)
|
|||||||
else
|
else
|
||||||
|
|
||||||
if def.stname == "" then --ImGui namespace or top level
|
if def.stname == "" then --ImGui namespace or top level
|
||||||
local empty = def.args:match("^%(%)") --no args
|
|
||||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname..(empty and "(void)" or def.args)..";"..addcoment.."\n")
|
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname..(empty and "(void)" or def.args)..";"..addcoment.."\n")
|
||||||
else
|
else
|
||||||
cpp2ffi.prtable(def)
|
cpp2ffi.prtable(def)
|
||||||
|
Reference in New Issue
Block a user