diff --git a/scripts/ddl2cpp b/scripts/ddl2cpp index 992396e1..b7d5c1df 100755 --- a/scripts/ddl2cpp +++ b/scripts/ddl2cpp @@ -460,7 +460,7 @@ def beginHeader(pathToHeader, namespace, nsList): def endHeader(header, nsList): - for ns in nsList: + for ns in reversed(nsList): print("} // namespace " + ns, file=header) print("#endif", file=header) header.close() diff --git a/scripts/sqlite2cpp.py b/scripts/sqlite2cpp.py index c6f243c2..acc34844 100644 --- a/scripts/sqlite2cpp.py +++ b/scripts/sqlite2cpp.py @@ -162,7 +162,7 @@ def main(): print(' };', file=header) - for ns in nsList: + for ns in reversed(nsList): print('} // namespace ' + ns, file=header) print('#endif', file=header)