Skip to content

Commit

Permalink
added a mapping to the C++ properties
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed May 24, 2021
1 parent cb0be57 commit 1eefd47
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 @@ -314,6 +314,7 @@ def setelementproperties_cpp(element,indent, defer,done):
if 'WordReference' in value:
value += tuple( e for e in sorted(flattenclasses(spec['wrefables'])) )
s += indent + outputvar(element['class'] + '::PROPS.' + prop.upper(), value, target) + '\n'
s += indent + 'element_props[' + element['class'] + '_t] = &' + element['class'] + '::PROPS;\n'
done[element['class']] = True
return s

Expand Down

0 comments on commit 1eefd47

Please sign in to comment.