mirror of
https://github.com/Ed94/gencpp.git
synced 2025-07-02 20:01:03 -07:00
Pushing latest changes for gencpp
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user