LibGame v0.4.0
The LG Game Engine - Copyright (C) 2024-2026 ETMSoftware
Loading...
Searching...
No Matches
lg_mem.h
1/*
2 * LibGame - Copyright (C) Emmanuel Thomas-Maurin 2011-2026
3 * All rights reserved
4 */
5
6#ifndef LG_MEM_H
7#define LG_MEM_H
8
9/*
10 * Wrappers for these mem alloc funcs
11 */
12void *malloc2_plus(size_t, const char *, unsigned int, const char *); /* size , __FILE__, __LINE__, __func__ */
13#define malloc3(...) malloc2_plus(__VA_ARGS__, __FILE__, __LINE__, __func__)
14
15void free2_plus(void *, const char *, unsigned int, const char *); /* mem , __FILE__, __LINE__, __func__ */
16#define free3(...) free2_plus(__VA_ARGS__, __FILE__, __LINE__, __func__)
17
18void free_v2(void **);
19
20#endif /* LG_MEM_H */
void free_v2(void **mem)
Definition lg_mem.c:74
void free2_plus(void *mem, const char *file, unsigned int line, const char *func)
Definition lg_mem.c:46
void * malloc2_plus(size_t size, const char *file, unsigned int line, const char *func)
Definition lg_mem.c:23