0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Fix namespace closing comment order in ddl2cpp script

This commit is contained in:
Yuanhao Jia 2022-03-03 22:32:27 +08:00 committed by Roland Bock
parent dd4d023bec
commit 9fc07ef757
2 changed files with 2 additions and 2 deletions

View File

@ -460,7 +460,7 @@ def beginHeader(pathToHeader, namespace, nsList):
def endHeader(header, nsList): def endHeader(header, nsList):
for ns in nsList: for ns in reversed(nsList):
print("} // namespace " + ns, file=header) print("} // namespace " + ns, file=header)
print("#endif", file=header) print("#endif", file=header)
header.close() header.close()

View File

@ -162,7 +162,7 @@ def main():
print(' };', file=header) print(' };', file=header)
for ns in nsList: for ns in reversed(nsList):
print('} // namespace ' + ns, file=header) print('} // namespace ' + ns, file=header)
print('#endif', file=header) print('#endif', file=header)