Subversion Repositories Kolibri OS

Rev

Rev 8170 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8170 IgorA 1
#ifndef __KOLIBRI_HEAP_H_INCLUDED_
2
#define __KOLIBRI_HEAP_H_INCLUDED_
8129 IgorA 3
 
8184 IgorA 4
#include "kolibri.h"
5
#include "memheap.h"
8129 IgorA 6
 
7
// Kolibri memory heap interface.
8
 
9
namespace Kolibri   // All kolibri functions, types and data are nested in the (Kolibri) namespace.
10
{
8184 IgorA 11
	long _HeapInit()
8129 IgorA 12
	{
8184 IgorA 13
		return MemoryHeap::mem_Init();
8129 IgorA 14
	}
15
 
16
	void *Alloc(unsigned int size)
17
	{
8184 IgorA 18
		return MemoryHeap::mem_Alloc(size);
8129 IgorA 19
	}
20
 
21
	void *ReAlloc(void *mem, unsigned int size)
22
	{
8184 IgorA 23
		return MemoryHeap::mem_ReAlloc(size, mem);
8129 IgorA 24
	}
25
 
26
	void Free(void *mem)
27
	{
8184 IgorA 28
		MemoryHeap::mem_Free(mem);
8129 IgorA 29
	}
30
}
31
 
8170 IgorA 32
#endif  // ndef __KOLIBRI_HEAP_H_INCLUDED_