man lbRegister (Fonctions bibliothèques) - Registers memory for leakbug to keep track of.
NAME
lbRegister - Registers memory for leakbug to keep track of.
SYNOPSIS
#include <leakbug.h> void *lbRegister(void *ptr, unsigned int dataSize, const char *filename, int line, int debug_level);
PARAMETERS
- ptr
- The pointer to register.
- dataSize
- The size of the data.
- filename
- The calling filename.
- line
- The calling line number.
- debug_level
- The debug level.
DESCRIPTION
This is used to register any memory not automatically handled by leakbug. This is useful when leakbug dumps "Freeing unknown memory" warnings in your program. #ifdef WITH_LEAKBUG #include <leakbug.h> #define LB_REGISTER(ptr, dataSize) \ lbRegister((ptr), (dataSize), __FILE__, __LINE__, \ LEAKBUG_DEBUG_LEVEL) #else #define LB_REGISTER(ptr, dataSize) #endif
RETURNS
The pointer passed.