mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Updated IDL.
This commit is contained in:
@@ -68,15 +68,10 @@ idl.types = all_types
|
||||
local function add_comment(item, comment)
|
||||
-- strip space
|
||||
comment = comment:match "(.-)%s*$"
|
||||
local last = item.comment
|
||||
if last then
|
||||
if type(last) == "string" then
|
||||
item.comment = { last, comment }
|
||||
else
|
||||
table.insert(item.comment, comment)
|
||||
end
|
||||
if item.comment then
|
||||
table.insert(item.comment, comment)
|
||||
else
|
||||
item.comment = comment
|
||||
item.comment = { comment }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user