mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
feat(memory): add SMemAlloc, SMemFree, and SMemReAlloc
This commit is contained in:
parent
e128bd2554
commit
ec1c5c8844
3 changed files with 86 additions and 0 deletions
15
storm/Memory.hpp
Normal file
15
storm/Memory.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef STORM_MEMORY_HPP
|
||||
#define STORM_MEMORY_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
|
||||
void* SMemAlloc(size_t bytes, const char* filename, int32_t linenumber, uint32_t flags);
|
||||
|
||||
void SMemFree(void* ptr);
|
||||
|
||||
void SMemFree(void* ptr, const char* filename, int32_t linenumber, uint32_t flags);
|
||||
|
||||
void* SMemReAlloc(void* ptr, size_t bytes, const char* filename, int32_t linenumber, uint32_t flags);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue