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;
}

View File

@@ -1,5 +1,5 @@
#include "Bloat.cpp"
// #include "Parsed\Array.Parsed.hpp"
#include "Parsed\Array.Parsed.hpp"
// #include "Parsed\Buffer.Parsed.hpp"
// #include "Parsed\HashTable.Parsed.hpp"
// #include "Parsed\Ring.Parsed.hpp"
@@ -19,7 +19,7 @@ int gen_main()
gen_sanity();
// gen_array( u8 );
gen_array( u8 );
// gen_array( sw );
// gen_buffer( u8 );
@@ -28,7 +28,7 @@ int gen_main()
// gen_ring( s16 );
// gen_array_file();
gen_array_file();
// gen_buffer_file();
// gen_hashtable_file();
// gen_ring_file();