💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Vgmi › files › dd49863ab38d14acdad2cdec815d9… captured on 2023-12-28 at 15:43:48. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
0 /*
1 * ISC License
2 * Copyright (c) 2023 RMF <rawmonk@firemail.cc>
3 */
4 #ifdef MEM_CHECK
5 #ifndef _MEMCHECK_H_
6 #define _MEMCHECK_H_
7
8 void __free(void*, const char*, int, const char*);
9 void* __malloc(size_t, const char*, int, const char*);
10 void* __calloc(size_t, size_t, const char*, int, const char*);
11 void* __realloc(void*, size_t, const char*, int, const char*);
12 void __init();
13 void __check();
14
15 #define free(x) __free(x, __FILE__, __LINE__, __func__)
16 #define malloc(x) __malloc(x, __FILE__, __LINE__, __func__)
17 #define calloc(x,y) __calloc(x, y, __FILE__, __LINE__, __func__)
18 #define realloc(x,y) __realloc(x, y, __FILE__, __LINE__, __func__)
19 #define main(x,y) __main(x, y)
20 #endif
21 #endif
22