Skip to content

Commit

Permalink
added 1 line to the C++ code generation, enabling a light for of type…
Browse files Browse the repository at this point in the history
… introspection
  • Loading branch information
kosloot committed Mar 27, 2024
1 parent 3509e98 commit a7f1e9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions foliatools/foliaspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ def setelementproperties_cpp(element,indent, defer,done):
return None
else:
s += indent + element['class'] + '::PROPS = ' + parent + '::PROPS;\n'
s += indent + 'abstract_parents[' + element['class'] + '_t] = ' + parent + '_t;\n'
break
s += indent + element['class'] + '::PROPS.ELEMENT_ID = ' + element['class'] + '_t;\n'
if 'properties' in element:
Expand Down

0 comments on commit a7f1e9d

Please sign in to comment.