mirror of
https://github.com/Ed94/gencpp.git
synced 2025-06-30 19:01:02 -07:00
Fixed regression with non-parsed code due to new global allocator setup
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user