|
|
* | * |
* @return a pointer to the newly allocated and zeroed memory | * @return a pointer to the newly allocated and zeroed memory |
*/ | */ |
#define ggz_malloc(size) _ggz_malloc(size, __FUNCTION__ " in " __FILE__, __LINE__) |
#define ggz_malloc(size) _ggz_malloc(size, __FILE__, __LINE__) |
| |
| |
/** | /** |
|
|
* | * |
* @return pointer to allocated memory | * @return pointer to allocated memory |
*/ | */ |
#define ggz_realloc(mem, size) _ggz_realloc(mem, size, __FUNCTION__ " in " __FILE__, __LINE__) |
#define ggz_realloc(mem, size) _ggz_realloc(mem, size, __FILE__, __LINE__) |
| |
| |
/** | /** |
|
|
* | * |
* @return failure code | * @return failure code |
*/ | */ |
#define ggz_free(mem) _ggz_free(mem, __FUNCTION__ " in " __FILE__, __LINE__) |
#define ggz_free(mem) _ggz_free(mem, __FILE__, __LINE__) |
| |
| |
/** | /** |
|
|
* | * |
* @note It is safe to pass a NULL string. | * @note It is safe to pass a NULL string. |
*/ | */ |
#define ggz_strdup(string) _ggz_strdup(string, __FUNCTION__ " in " __FILE__, __LINE__) |
#define ggz_strdup(string) _ggz_strdup(string, __FILE__, __LINE__) |
| |
| |
| |