summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2016-10-18 14:24:44 -0500
committerPatrick Williams <patrick@stwcx.xyz>2016-10-20 16:40:18 -0500
commit0e9ad0d6dcbcd89e099672935d524c345362f7ce (patch)
treed95e668570e45c71246ba6ca0be710ce2a0a6c69
parentb2cca01b3dad5cc1e65f28c295faab625274d793 (diff)
downloadsdbusplus-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.cpp2
-rw-r--r--tools/templates/interface.mako.server.hpp2
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
OpenPOWER on IntegriCloud