check did not exclude tables and could gettable from nil
[lqt.git] / generator / qt_internal.lua
blobcebdf6810258928cde2ac220f27e77cb68f834fa
2 local classes, enums = ...
3 local ret1, ret2 = {}, {}
5 for c in pairs(classes) do
6 local n = c.xarg.name
7 if n~=string.lower(n) and not string.match(n, '_') then
8 ret1[c] = true
9 end
10 end
12 for e in pairs(enums) do
13 local n = e.xarg.name
14 if n~=string.lower(n) and not string.match(n, '_') then
15 ret2[e] = true
16 end
17 end
19 return ret1, ret2