fix: gen_constants_cpp.py: mark constants as persistent

This commit is contained in:
Sebastian Ullrich
2020-11-29 18:16:31 +01:00
parent ad5f8f021d
commit 65c1bc8952
2 changed files with 104 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ def main(argv=None):
f.write('"%s"' % part)
first = False
f.write('};\n')
f.write(' mark_persistent(g_%s->raw());\n' % c[0])
f.write('}\n')
# finalize constants
f.write('void finalize_constants() {\n')