diff options
| author | Mustafa Quraish <[email protected]> | 2022-02-05 00:57:20 -0500 |
|---|---|---|
| committer | Mustafa Quraish <[email protected]> | 2022-02-05 08:56:15 -0500 |
| commit | 24dd666121e2786efb82854b05aa71d759e04ee6 (patch) | |
| tree | 4420eda5e1cde0bfe7dfe8f4b160212d59ceeca3 /src/ast.c | |
| parent | Add `void` type and allow void* to be assigned to other ptr types (diff) | |
| download | cup-24dd666121e2786efb82854b05aa71d759e04ee6.tar.xz cup-24dd666121e2786efb82854b05aa71d759e04ee6.zip | |
Add ability to initialize global variables
The code to initialize them is put right before calling `main()`
Diffstat (limited to 'src/ast.c')
| -rw-r--r-- | src/ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -199,7 +199,7 @@ void dump_func(Node *node, int depth) printf("[[%lld]]", node->func.args[i].offset); } printf(")"); - if (node->func.return_type->type != TYPE_NONE) { + if (node->func.return_type->type != TYPE_VOID) { // FIXME: Print return type properly printf(" -> %s", type_to_str(node->func.return_type)); } |