ADDED: MemAlloc() / MemFree() #1440
Exposing internal memory allocator/free, useful for advance users when required
This commit is contained in:
parent
cbf7369a3d
commit
d2d72b1dfb
2 changed files with 14 additions and 0 deletions
12
src/utils.c
12
src/utils.c
|
@ -163,6 +163,18 @@ void TraceLog(int logType, const char *text, ...)
|
|||
#endif // SUPPORT_TRACELOG
|
||||
}
|
||||
|
||||
// Internal memory allocator
|
||||
void *MemAlloc(int size)
|
||||
{
|
||||
return RL_MALLOC(size);
|
||||
}
|
||||
|
||||
// Internal memory free
|
||||
void MemFree(void *ptr)
|
||||
{
|
||||
RL_FREE(ptr);
|
||||
}
|
||||
|
||||
// Load data from file into a buffer
|
||||
unsigned char *LoadFileData(const char *fileName, unsigned int *bytesRead)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue