Implement the callconv() annotation

This commit is contained in:
LemonBoy
2019-12-23 21:52:06 +01:00
parent 7bd80f2071
commit 563d9ebfe5
50 changed files with 573 additions and 359 deletions

View File

@@ -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");