memory.h
./rogue25b1/src/memory.h · 259 B
From the archive rogue2.5b1.tar.gz
Download the archive « Back to the archive contents
#if !defined(_MEMORY_H_)
#define _MEMORY_H_
#include "types.h"
void Free_Error(char * file, int line);
#define FREE(ptr) \
if (ptr == NULL) { \
Free_Error(__FUNCTION__, __LINE__); \
} else { \
free(ptr); \
ptr = NULL; \
}
#endif