diff options
| author | LemonBoy <thatlemon@gmail.com> | 2019-12-23 21:52:06 +0100 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2020-01-02 18:53:16 +0100 |
| commit | 563d9ebfe597b313b265a5a30296c081fe35d87a (patch) | |
| tree | 9b67e280b607498d1592fbc420d10ec39d835440 /src/ast_render.cpp | |
| parent | 7bd80f207147167821634e16983edf9e9b115c9f (diff) | |
| download | zig-563d9ebfe597b313b265a5a30296c081fe35d87a.tar.gz zig-563d9ebfe597b313b265a5a30296c081fe35d87a.zip | |
Implement the callconv() annotation
Diffstat (limited to 'src/ast_render.cpp')
| -rw-r--r-- | src/ast_render.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ast_render.cpp b/src/ast_render.cpp index 2be932ac8e..d8d0d6c0e2 100644 --- a/src/ast_render.cpp +++ b/src/ast_render.cpp @@ -488,6 +488,11 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) { render_node_grouped(ar, node->data.fn_proto.section_expr); fprintf(ar->f, ")"); } + if (node->data.fn_proto.callconv_expr) { + fprintf(ar->f, " callconv("); + render_node_grouped(ar, node->data.fn_proto.callconv_expr); + fprintf(ar->f, ")"); + } if (node->data.fn_proto.return_var_token != nullptr) { fprintf(ar->f, "var"); |
