Skip to content

Commit 1fbd7da

Browse files
committed
Print opening tick for cons cells
1 parent ec4b256 commit 1fbd7da

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

langs/hustle/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ int main(int argc, char** argv) {
2929
// `heap` gets passed in `rdi`
3030
// (defined by the calling convention, not up to us!)
3131
int64_t result = entry(heap);
32+
if (cons_type_tag == (ptr_type_mask & result)) printf("'");
3233
print_result(result);
3334
if (result != val_void) printf("\n");
3435
free(heap); // good memory hygiene

0 commit comments

Comments
 (0)