diff --git a/cimgui.h b/cimgui.h index 45f13d8..917e221 100644 --- a/cimgui.h +++ b/cimgui.h @@ -1,7 +1,7 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //based on imgui.h file version "1.65" from Dear ImGui https://github.com/ocornut/imgui #include - +#include #if defined _WIN32 || defined __CYGWIN__ #ifdef CIMGUI_NO_EXPORT #define API diff --git a/generator/cimgui_template.h b/generator/cimgui_template.h index d81e774..cc26d80 100644 --- a/generator/cimgui_template.h +++ b/generator/cimgui_template.h @@ -1,6 +1,6 @@ #include - +#include #if defined _WIN32 || defined __CYGWIN__ #ifdef CIMGUI_NO_EXPORT #define API diff --git a/generator/generator.lua b/generator/generator.lua index 1084a7c..ef84ea2 100644 --- a/generator/generator.lua +++ b/generator/generator.lua @@ -383,7 +383,9 @@ local function struct_parser() local in_functionst = false local structcdefs = {} + local ImVector_templates = {} local STP = {} + STP.ImVector_templates = ImVector_templates STP.lines = structcdefs function STP.insert(line,comment) @@ -416,6 +418,10 @@ local function struct_parser() --nothing else local linea = line:gsub("%S+",{class="struct",mutable=""}) + local template = linea:match("ImVector<([%w_]+)>") + if template then + ImVector_templates[template] = true + end linea = linea:gsub("(%b<>)","/*%1*/") --comment template parameters table.insert(structcdefs,linea..comment) end diff --git a/generator/output/cimgui.h b/generator/output/cimgui.h index 45f13d8..917e221 100644 --- a/generator/output/cimgui.h +++ b/generator/output/cimgui.h @@ -1,7 +1,7 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //based on imgui.h file version "1.65" from Dear ImGui https://github.com/ocornut/imgui #include - +#include #if defined _WIN32 || defined __CYGWIN__ #ifdef CIMGUI_NO_EXPORT #define API