This commit is contained in:
cfif 2025-06-02 13:26:40 +03:00
commit 365f59bca9
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,22 @@
//
// Created by xemon on 28.11.22.
//
#ifndef UVEOS_ON_NATION_MEMORYALLOCATIONINTERFACE_H
#define UVEOS_ON_NATION_MEMORYALLOCATIONINTERFACE_H
#include "stddef.h"
typedef struct {
void *env;
void *(*alloc)(void *env, size_t size);
void (*free)(void *env, void *pointer);
} tMemAllocInterface;
#define Mem_Alloc(ENV, SIZE) (ENV)->alloc((ENV)->env,SIZE)
#define Mem_Free(ENV, PTR) (ENV)->free((ENV)->env,PTR)
#endif //UVEOS_ON_NATION_MEMORYALLOCATIONINTERFACE_H

12
modular.json Normal file
View File

@ -0,0 +1,12 @@
{
"dep": [
],
"cmake": {
"inc_dirs": [
"./"
],
"srcs": [
"./**.c"
]
}
}