From 307895ce6e4fb875afba0999c257b573eff6aa4c Mon Sep 17 00:00:00 2001 From: Csaba Hruska Date: Mon, 21 Sep 2015 13:27:30 +0200 Subject: ddl: improve typedef look in C++ --- templates/data.hpp.ede | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates/data.hpp.ede') diff --git a/templates/data.hpp.ede b/templates/data.hpp.ede index 383ed5f..dab478c 100644 --- a/templates/data.hpp.ede +++ b/templates/data.hpp.ede @@ -28,7 +28,12 @@ namespace data { {% for c in t.value.constructors %}{% if !(c.value.fields | emp };{% endif %}{% endfor %} } {% when "TypeAlias" %} +{% case t.value.aliasType.tag %} +{% when "Data" %} +typedef {{ t.value.aliasType.contents }} {{ t.value.aliasName }}; +{% else %} typedef {{ t.value.aliasType | cppType }} {{ t.value.aliasName }}; +{% endcase %} {% endcase %} {% endfor %} -- cgit v1.2.3