mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
15 lines
248 B
C
Executable file
15 lines
248 B
C
Executable file
#ifndef __MEM_H__
|
|
#define __MEM_H__
|
|
|
|
#include "res.h"
|
|
|
|
enum MemType
|
|
{
|
|
MEM_POOL,
|
|
MEM_HEAP
|
|
};
|
|
|
|
extern void* mem_alloc(size_t size, MemType type = MEM_HEAP, uint align = 1, Handle* ph = 0);
|
|
extern int mem_free(void* p);
|
|
|
|
#endif // #ifndef __MEM_H__
|