Updated IDL scripts.

This commit is contained in:
Бранимир Караџић
2019-05-23 08:15:14 -07:00
parent 680eb21060
commit 3f4c6d35cf
6 changed files with 657 additions and 27 deletions

View File

@@ -20,6 +20,7 @@ local func_actions = {
local type_actions = {
cflags = "\n",
enums = "\n",
cenums = "\n",
structs = "\n",
@@ -173,6 +174,12 @@ function typegen.cenums(typedef)
end
end
function typegen.cflags(typedef)
if typedef.flag then
return add_doxygen(typedef, codegen.gen_flag_cdefine(typedef), true)
end
end
function typegen.structs(typedef)
if typedef.struct and not typedef.namespace then
local methods = typedef.methods
@@ -255,6 +262,8 @@ local function codes()
temp[k] = table.concat(temp[k], indent)
end
temp.version = string.format("#define BGFX_API_VERSION UINT32_C(%d)", idl._version or 0)
return temp
end