kolibrios/programs/demos/life2/include/kos_heap.h
IgorA 9582ac80f6 update demo life2,
fix rev 8179

git-svn-id: svn://kolibrios.org@8184 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-13 11:22:40 +00:00

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_