lexLeo
Loading...
Searching...
No Matches
symtab_memory_allocator.h
1// src/core/symtab/include/internal/symtab_memory_allocator.h
2
3#ifndef SYMTAB_MEMORY_ALLOCATOR_H
4#define SYMTAB_MEMORY_ALLOCATOR_H
5
6#ifdef USE_MEMORY_ALLOCATOR
7 #include "memory_allocator.h"
8 #define SYMTAB_MALLOC(size) get_current_malloc()(size)
9 #define SYMTAB_FREE(ptr) get_current_free()(ptr)
10#else
11 #include <stdlib.h>
12 #define SYMTAB_MALLOC(size) malloc(size)
13 #define SYMTAB_FREE(ptr) free(ptr)
14#endif
15
16#endif //SYMTAB_MEMORY_ALLOCATOR_H