Pushing latest changes for gencpp

This commit is contained in:
2024-04-17 16:55:22 -04:00
parent 626ab703a7
commit 83d691c65c
11 changed files with 254 additions and 235 deletions

View File

@ -195,7 +195,7 @@ struct Array
return get_header()->Num;
}
bool pop( void )
void pop( void )
{
Header& header = * get_header();
@ -246,7 +246,11 @@ struct Array
return true;
if ( new_capacity < header.Num )
{
// Already have the memory, mine as well keep it.
header.Num = new_capacity;
return true;
}
sw size = sizeof( Header ) + sizeof( Type ) * new_capacity;
Header* new_header = rcast( Header*, alloc( header.Allocator, size ) );
@ -289,6 +293,8 @@ struct Array
}
};
// TODO(Ed) : This thing needs ALOT of work.
template<typename Type>
struct HashTable
{