diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-10-18 14:24:44 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-10-20 16:40:18 -0500 |
commit | 0e9ad0d6dcbcd89e099672935d524c345362f7ce (patch) | |
tree | d95e668570e45c71246ba6ca0be710ce2a0a6c69 | |
parent | b2cca01b3dad5cc1e65f28c295faab625274d793 (diff) | |
download | sdbusplus-0e9ad0d6dcbcd89e099672935d524c345362f7ce.tar.gz sdbusplus-0e9ad0d6dcbcd89e099672935d524c345362f7ce.zip |
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>
-rw-r--r-- | tools/templates/interface.mako.server.cpp | 2 | ||||
-rw-r--r-- | tools/templates/interface.mako.server.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ ${ s.cpp_prototype(loader, interface=interface, ptype='vtable') } vtable::end() }; - % for s in namespaces: + % for s in reversed(namespaces): } // namespace ${s} % endfor } // namespace server diff --git a/tools/templates/interface.mako.server.hpp b/tools/templates/interface.mako.server.hpp index ca78cec..ba55ef6 100644 --- a/tools/templates/interface.mako.server.hpp +++ b/tools/templates/interface.mako.server.hpp @@ -85,7 +85,7 @@ ${ m.cpp_prototype(loader, interface=interface, ptype='callback-header') } }; - % for s in namespaces: + % for s in reversed(namespaces): } // namespace ${s} % endfor } // namespace server |