mirror of
https://github.com/Ed94/gencpp.git
synced 2025-07-30 00:46:59 -07:00
array.Parsed.hpp passed test!
This commit is contained in:
@@ -330,7 +330,7 @@ u32 gen_array_file()
|
||||
{
|
||||
Builder
|
||||
gen_array_file;
|
||||
gen_array_file.open( "array.gen.hpp" );
|
||||
gen_array_file.open( "array.NonParsed.gen.hpp" );
|
||||
|
||||
Code include_zpl = def_include( StrC::from("Bloat.hpp") );
|
||||
gen_array_file.print( include_zpl );
|
||||
|
@@ -235,7 +235,7 @@ u32 gen_buffer_file()
|
||||
{
|
||||
Builder
|
||||
gen_buffer_file;
|
||||
gen_buffer_file.open( "buffer.gen.hpp" );
|
||||
gen_buffer_file.open( "buffer.NonParsed.gen.hpp" );
|
||||
|
||||
gen_buffer_file.print( def_include( StrC::from("Bloat.hpp")) );
|
||||
gen_buffer_file.print( gen__buffer_base() );
|
||||
|
@@ -431,7 +431,7 @@ u32 gen_hashtable_file()
|
||||
{
|
||||
Builder
|
||||
gen_buffer_file;
|
||||
gen_buffer_file.open( "hashtable.gen.hpp" );
|
||||
gen_buffer_file.open( "hashtable.NonParsed.gen.hpp" );
|
||||
|
||||
gen_buffer_file.print( def_include( StrC::from("Bloat.hpp")) );
|
||||
gen_buffer_file.print( def_include( StrC::from("Array.NonParsed.hpp")) );
|
||||
|
@@ -194,7 +194,7 @@ u32 gen_ring_file()
|
||||
{
|
||||
Builder
|
||||
gen_ring_file;
|
||||
gen_ring_file.open( "ring.gen.hpp" );
|
||||
gen_ring_file.open( "ring.NonParsed.gen.hpp" );
|
||||
|
||||
gen_ring_file.print( def_include( StrC::from("Bloat.hpp")) );
|
||||
gen_ring_file.print( def_include( StrC::from("buffer.gen.hpp")) );
|
||||
|
@@ -39,7 +39,7 @@ Code gen__array( StrC type, sw type_size )
|
||||
using Header = ArrayHeader;
|
||||
using Type = <type>;
|
||||
|
||||
constexpr auto grow_formula = &array_glow_formula;
|
||||
static constexpr auto grow_formula = &array_grow_formula;
|
||||
|
||||
static
|
||||
<ArrayType> init( AllocatorInfo allocator )
|
||||
@@ -211,8 +211,8 @@ Code gen__array( StrC type, sw type_size )
|
||||
),
|
||||
// Tokens
|
||||
2
|
||||
, "ArrayType", name
|
||||
, "type", type
|
||||
, "ArrayType", (char const*) name
|
||||
, "type", (char const*) type
|
||||
));
|
||||
|
||||
return array;
|
||||
@@ -254,7 +254,7 @@ u32 gen_array_file()
|
||||
{
|
||||
Builder
|
||||
gen_array_file;
|
||||
gen_array_file.open( "array.gen.hpp" );
|
||||
gen_array_file.open( "array.Parsed.gen.hpp" );
|
||||
|
||||
Code include_zpl = def_include( StrC::from("Bloat.hpp") );
|
||||
gen_array_file.print( include_zpl );
|
||||
|
@@ -17,7 +17,7 @@ int gen_main()
|
||||
Memory::setup();
|
||||
gen::init();
|
||||
|
||||
gen_sanity();
|
||||
// gen_sanity();
|
||||
|
||||
gen_array( u8 );
|
||||
// gen_array( sw );
|
||||
|
Reference in New Issue
Block a user