Iridescence 1.00
Embedded Graphic Framework
Loading...
Searching...
No Matches
ds_allocator.h
1/* Copyright (C) 2017 - 2024, Thornwave Labs Inc - All Rights Reserved.
2 * Unauthorized copying of this file, via any medium is strictly prohibited.
3 * Proprietary and confidential.
4 * Written by Razvan Turiac <razvan.turiac@thornwave.com>
5*/
6
7#ifndef _DS_ALLOCATOR_H
8#define _DS_ALLOCATOR_H
9
10
11#include <stdint.h>
12#include <stddef.h>
13
14
18typedef void* (*ds_malloc_t)(size_t size);
19
20
24typedef void (*ds_free_t)(void* p);
25
26
27void ds_allocator_init(void);
28
29void* ds_malloc(size_t size);
30void ds_free(void* ptr);
31
32
33#endif