We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e67c6b2 commit 073aa8bCopy full SHA for 073aa8b
script/plugins/ffi/c-parser/ctypes.lua
@@ -149,7 +149,10 @@ end
149
local function add_to_fields(lst, field_src, fields)
150
if type(field_src) == "table" and not field_src.ids then
151
assert(field_src.type.type == "union")
152
- local subfields = get_fields(lst, field_src.type.fields)
+ local subfields, err = get_fields(lst, field_src.type.fields)
153
+ if not subfields then
154
+ return nil, err
155
+ end
156
for _, subfield in ipairs(subfields) do
157
table.insert(fields, subfield)
158
end
0 commit comments