Updated with latest Tommy
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled

This commit is contained in:
Andrea Mazzoleni 2025-12-03 19:10:13 +01:00
parent 45d278483c
commit 3c7b90e93f
14 changed files with 163 additions and 120 deletions

View file

@ -30,7 +30,7 @@
/******************************************************************************/
/* array */
void tommy_array_init(tommy_array* array)
TOMMY_API void tommy_array_init(tommy_array* array)
{
tommy_uint_t i;
@ -44,7 +44,7 @@ void tommy_array_init(tommy_array* array)
array->count = 0;
}
void tommy_array_done(tommy_array* array)
TOMMY_API void tommy_array_done(tommy_array* array)
{
tommy_uint_t i;
@ -55,7 +55,7 @@ void tommy_array_done(tommy_array* array)
}
}
void tommy_array_grow(tommy_array* array, tommy_size_t count)
TOMMY_API void tommy_array_grow(tommy_array* array, tommy_size_t count)
{
if (array->count >= count)
return;
@ -76,7 +76,7 @@ void tommy_array_grow(tommy_array* array, tommy_size_t count)
}
}
tommy_size_t tommy_array_memory_usage(tommy_array* array)
TOMMY_API tommy_size_t tommy_array_memory_usage(tommy_array* array)
{
return array->bucket_max * (tommy_size_t)sizeof(void*);
}