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
|
struct ImGuiTextBuffer
|
||||||
{
|
{
|
||||||
ImVector_char Buf;
|
ImVector_char Buf;
|
||||||
char EmptyString[1];
|
|
||||||
};
|
};
|
||||||
struct ImGuiStorage
|
struct ImGuiStorage
|
||||||
{
|
{
|
||||||
|
@@ -411,6 +411,10 @@ local function struct_parser()
|
|||||||
table.insert(structcdefs,line)
|
table.insert(structcdefs,line)
|
||||||
return
|
return
|
||||||
end
|
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_function discard
|
||||||
if in_functionst then
|
if in_functionst then
|
||||||
@@ -434,7 +438,7 @@ local function struct_parser()
|
|||||||
elseif line:match("public:") then
|
elseif line:match("public:") then
|
||||||
--nothing
|
--nothing
|
||||||
else
|
else
|
||||||
local linea = line:gsub("%S+",{class="struct",mutable="",static=""})
|
local linea = line:gsub("%S+",{class="struct",mutable=""})
|
||||||
local template = linea:match("ImVector<(.+)>")
|
local template = linea:match("ImVector<(.+)>")
|
||||||
if template then
|
if template then
|
||||||
local te = template:gsub("%s","_")
|
local te = template:gsub("%s","_")
|
||||||
|
@@ -605,7 +605,6 @@ struct ImGuiTextFilter
|
|||||||
struct ImGuiTextBuffer
|
struct ImGuiTextBuffer
|
||||||
{
|
{
|
||||||
ImVector_char Buf;
|
ImVector_char Buf;
|
||||||
char EmptyString[1];
|
|
||||||
};
|
};
|
||||||
struct ImGuiStorage
|
struct ImGuiStorage
|
||||||
{
|
{
|
||||||
|
@@ -1105,10 +1105,7 @@
|
|||||||
"name":"DisplaySize"}],
|
"name":"DisplaySize"}],
|
||||||
"ImGuiTextBuffer":[{"type":"ImVector_char",
|
"ImGuiTextBuffer":[{"type":"ImVector_char",
|
||||||
"template_type":"char",
|
"template_type":"char",
|
||||||
"name":"Buf"},
|
"name":"Buf"}],
|
||||||
{"type":"char",
|
|
||||||
"size":1,
|
|
||||||
"name":"EmptyString[1]"}],
|
|
||||||
"ImGuiStyle":[{"type":"float",
|
"ImGuiStyle":[{"type":"float",
|
||||||
"name":"Alpha"},
|
"name":"Alpha"},
|
||||||
{"type":"ImVec2",
|
{"type":"ImVec2",
|
||||||
|
@@ -1958,10 +1958,6 @@ defs["structs"]["ImGuiTextBuffer"][1] = {}
|
|||||||
defs["structs"]["ImGuiTextBuffer"][1]["name"] = "Buf"
|
defs["structs"]["ImGuiTextBuffer"][1]["name"] = "Buf"
|
||||||
defs["structs"]["ImGuiTextBuffer"][1]["template_type"] = "char"
|
defs["structs"]["ImGuiTextBuffer"][1]["template_type"] = "char"
|
||||||
defs["structs"]["ImGuiTextBuffer"][1]["type"] = "ImVector_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"] = {}
|
||||||
defs["structs"]["ImGuiTextFilter"][1] = {}
|
defs["structs"]["ImGuiTextFilter"][1] = {}
|
||||||
defs["structs"]["ImGuiTextFilter"][1]["name"] = "InputBuf[256]"
|
defs["structs"]["ImGuiTextFilter"][1]["name"] = "InputBuf[256]"
|
||||||
|
Reference in New Issue
Block a user