mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 03:48:30 +01:00
remove static char EmptyString lines
This commit is contained in:
1
cimgui.h
1
cimgui.h
@@ -605,7 +605,6 @@ struct ImGuiTextFilter
|
||||
struct ImGuiTextBuffer
|
||||
{
|
||||
ImVector_char Buf;
|
||||
char EmptyString[1];
|
||||
};
|
||||
struct ImGuiStorage
|
||||
{
|
||||
|
@@ -411,6 +411,10 @@ local function struct_parser()
|
||||
table.insert(structcdefs,line)
|
||||
return
|
||||
end
|
||||
if line:match"^%s*static char" then
|
||||
assert(line:match"EmptyString",line)
|
||||
return --skip that static chat EmtyString
|
||||
end
|
||||
|
||||
--if in_function discard
|
||||
if in_functionst then
|
||||
@@ -434,7 +438,7 @@ local function struct_parser()
|
||||
elseif line:match("public:") then
|
||||
--nothing
|
||||
else
|
||||
local linea = line:gsub("%S+",{class="struct",mutable="",static=""})
|
||||
local linea = line:gsub("%S+",{class="struct",mutable=""})
|
||||
local template = linea:match("ImVector<(.+)>")
|
||||
if template then
|
||||
local te = template:gsub("%s","_")
|
||||
|
@@ -605,7 +605,6 @@ struct ImGuiTextFilter
|
||||
struct ImGuiTextBuffer
|
||||
{
|
||||
ImVector_char Buf;
|
||||
char EmptyString[1];
|
||||
};
|
||||
struct ImGuiStorage
|
||||
{
|
||||
|
@@ -1105,10 +1105,7 @@
|
||||
"name":"DisplaySize"}],
|
||||
"ImGuiTextBuffer":[{"type":"ImVector_char",
|
||||
"template_type":"char",
|
||||
"name":"Buf"},
|
||||
{"type":"char",
|
||||
"size":1,
|
||||
"name":"EmptyString[1]"}],
|
||||
"name":"Buf"}],
|
||||
"ImGuiStyle":[{"type":"float",
|
||||
"name":"Alpha"},
|
||||
{"type":"ImVec2",
|
||||
|
@@ -1958,10 +1958,6 @@ defs["structs"]["ImGuiTextBuffer"][1] = {}
|
||||
defs["structs"]["ImGuiTextBuffer"][1]["name"] = "Buf"
|
||||
defs["structs"]["ImGuiTextBuffer"][1]["template_type"] = "char"
|
||||
defs["structs"]["ImGuiTextBuffer"][1]["type"] = "ImVector_char"
|
||||
defs["structs"]["ImGuiTextBuffer"][2] = {}
|
||||
defs["structs"]["ImGuiTextBuffer"][2]["name"] = "EmptyString[1]"
|
||||
defs["structs"]["ImGuiTextBuffer"][2]["size"] = 1
|
||||
defs["structs"]["ImGuiTextBuffer"][2]["type"] = "char"
|
||||
defs["structs"]["ImGuiTextFilter"] = {}
|
||||
defs["structs"]["ImGuiTextFilter"][1] = {}
|
||||
defs["structs"]["ImGuiTextFilter"][1]["name"] = "InputBuf[256]"
|
||||
|
Reference in New Issue
Block a user