diff options
author | Csaba Hruska <csaba.hruska@gmail.com> | 2015-09-21 13:27:30 +0200 |
---|---|---|
committer | Csaba Hruska <csaba.hruska@gmail.com> | 2015-09-21 13:27:30 +0200 |
commit | 307895ce6e4fb875afba0999c257b573eff6aa4c (patch) | |
tree | a91a440b67b8525fa8dd5f8a1ade60e65f01eb31 /templates | |
parent | 080df3009bd166cfe61602d44fdfdcf865c4e8ae (diff) |
ddl: improve typedef look in C++
Diffstat (limited to 'templates')
-rw-r--r-- | templates/data.hpp.ede | 5 |
1 files changed, 5 insertions, 0 deletions
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 | |||
28 | };{% endif %}{% endfor %} | 28 | };{% endif %}{% endfor %} |
29 | } | 29 | } |
30 | {% when "TypeAlias" %} | 30 | {% when "TypeAlias" %} |
31 | {% case t.value.aliasType.tag %} | ||
32 | {% when "Data" %} | ||
33 | typedef {{ t.value.aliasType.contents }} {{ t.value.aliasName }}; | ||
34 | {% else %} | ||
31 | typedef {{ t.value.aliasType | cppType }} {{ t.value.aliasName }}; | 35 | typedef {{ t.value.aliasType | cppType }} {{ t.value.aliasName }}; |
36 | {% endcase %} | ||
32 | 37 | ||
33 | {% endcase %} | 38 | {% endcase %} |
34 | {% endfor %} | 39 | {% endfor %} |