mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-23 08:28:31 +01:00
Always make enum values a string
This commit is contained in:
@@ -1331,9 +1331,9 @@ function M.Parser()
|
||||
local prevvalue = enum_table[#enum_table] and enum_table[#enum_table].value
|
||||
local value --= enum_table[#enum_table] and (enum_table[#enum_table].value + 1) or 0
|
||||
if not prevvalue then
|
||||
value = 0
|
||||
value = "0"
|
||||
elseif tonumber(prevvalue) then
|
||||
value = prevvalue +1
|
||||
value = tostring(prevvalue +1)
|
||||
else --should be string
|
||||
value = prevvalue .. "+1"
|
||||
end
|
||||
@@ -1924,4 +1924,4 @@ M.prtable(parser:gen_structs_and_enums_table())
|
||||
--]=]
|
||||
--print(clean_spaces[[ImVec2 ArcFastVtx[12 * 1];]])
|
||||
|
||||
return M
|
||||
return M
|
||||
|
Reference in New Issue
Block a user