Fixed regression with non-parsed code due to new global allocator setup

This commit is contained in:
2023-07-10 22:56:59 -04:00
parent 1c5881c5a3
commit 1fb3db379c
5 changed files with 286 additions and 13 deletions

View File

@ -202,6 +202,11 @@ Code gen__array( StrC type, sw type_size )
}
Type* Data;
operator Type*()
{
return Data;
}
};
),
// Tokens
@ -210,14 +215,6 @@ Code gen__array( StrC type, sw type_size )
, "type", type
));
Code op_ptr = untyped_str( code(
operator Type*()
{
return Data;
}
));
array.body()->add_entry( op_ptr );
return array;
}