sdbus++: interface namespaces closed backward
In the generated interface files, the closing brackets for the
namespaces were commented backwards. com.example generated:
} // namespace com
} // namespace example
Change-Id: I57a9d3b3ba30c2a90f243ba447c7295da258bd58
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/tools/templates/interface.mako.server.cpp b/tools/templates/interface.mako.server.cpp
index b606033..cb4ca29 100644
--- a/tools/templates/interface.mako.server.cpp
+++ b/tools/templates/interface.mako.server.cpp
@@ -98,7 +98,7 @@
vtable::end()
};
- % for s in namespaces:
+ % for s in reversed(namespaces):
} // namespace ${s}
% endfor
} // namespace server