inline parameters
This replaces the current generic syntax for functions and replaces it with the concept of inline parameters. This paves the way for the "all structs anonymous" proposal. Closes #151.
This commit is contained in:
@@ -353,7 +353,8 @@ static void render_node(AstRender *ar, AstNode *node) {
|
||||
assert(param_decl->type == NodeTypeParamDecl);
|
||||
if (buf_len(¶m_decl->data.param_decl.name) > 0) {
|
||||
const char *noalias_str = param_decl->data.param_decl.is_noalias ? "noalias " : "";
|
||||
fprintf(ar->f, "%s", noalias_str);
|
||||
const char *inline_str = param_decl->data.param_decl.is_inline ? "inline " : "";
|
||||
fprintf(ar->f, "%s%s", noalias_str, inline_str);
|
||||
print_symbol(ar, ¶m_decl->data.param_decl.name);
|
||||
fprintf(ar->f, ": ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user