mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
20 lines
419 B
C
20 lines
419 B
C
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
bool ta_init(const void *base, const void *limit, const size_t heap_blocks, const size_t split_thresh, const size_t alignment);
|
|
void *ta_alloc(size_t num);
|
|
void *ta_calloc(size_t num, size_t size);
|
|
bool ta_free(void *ptr);
|
|
|
|
size_t ta_num_free();
|
|
size_t ta_num_used();
|
|
size_t ta_num_fresh();
|
|
bool ta_check();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|