mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 15:46:49 +03:00
9582ac80f6
fix rev 8179 git-svn-id: svn://kolibrios.org@8184 a494cfbc-eb01-0410-851d-a64ba20cac60
33 lines
618 B
C++
33 lines
618 B
C++
#ifndef __KOLIBRI_HEAP_H_INCLUDED_
|
|
#define __KOLIBRI_HEAP_H_INCLUDED_
|
|
|
|
#include "kolibri.h"
|
|
#include "memheap.h"
|
|
|
|
// Kolibri memory heap interface.
|
|
|
|
namespace Kolibri // All kolibri functions, types and data are nested in the (Kolibri) namespace.
|
|
{
|
|
long _HeapInit()
|
|
{
|
|
return MemoryHeap::mem_Init();
|
|
}
|
|
|
|
void *Alloc(unsigned int size)
|
|
{
|
|
return MemoryHeap::mem_Alloc(size);
|
|
}
|
|
|
|
void *ReAlloc(void *mem, unsigned int size)
|
|
{
|
|
return MemoryHeap::mem_ReAlloc(size, mem);
|
|
}
|
|
|
|
void Free(void *mem)
|
|
{
|
|
MemoryHeap::mem_Free(mem);
|
|
}
|
|
}
|
|
|
|
#endif // ndef __KOLIBRI_HEAP_H_INCLUDED_
|