Updated allocT implementation to cast the returned void* to a T*.

Moved builtin memory tag names to top of source file because it didn't like being forward declared. TODO: Revisit this later
Fixed compilation error where the source-local function get_eng_unit did not return the modified value.
Shuffled include order around to fix compilation issues.
This commit is contained in:
2025-06-23 00:44:49 +10:00
parent 87f66e291b
commit e4eb380ff1
2 changed files with 32 additions and 32 deletions

View File

@@ -79,7 +79,7 @@ namespace basalt
template<typename T>
T* allocT(u64 num_elements, MEMORY_TAG tag)
{ return alloc(num_elements*sizeof(T), tag); }
{ return (T*)alloc(num_elements*sizeof(T), tag); }
template<typename T>
T* setzeroT(T * dst, u64 num_elements)
{ return setzero(dst, num_elements*sizeof(T)); }