[Yunq] Add ability to namespace declarations using "package".

This commit is contained in:
Drew Galbraith 2023-11-30 08:50:15 -08:00
parent 9fdd670a23
commit f1e09b2ae6
15 changed files with 153 additions and 10 deletions

View file

@ -6,6 +6,9 @@
#include <mammoth/util/debug.h>
#include <zcall.h>
{% if package != None %}
namespace {{package.cpp_namespace()}} {
{% endif %}
{% for interface in interfaces %}
{{interface.name}}Client::~{{interface.name}}Client() {
@ -61,3 +64,7 @@ glcr::ErrorCode {{interface.name}}Client::{{method.name}}(const {{method.request
{% endfor %}
{% endfor %}
{% if package != None %}
} // namepace {{package.cpp_namespace()}}
{% endif %}