INGOR
|
Functions | |
void | ytLib_init () |
Initializes the YT Lib library. | |
const char * | ytLib_version () |
Returns the ytLib Git version. | |
void | ytLib_showMemoryTable (FILE *fp) |
Prints the ytLib memory table. | |
size_t | ytLib_getAllocMemory () |
Returns the total size of allocated memory. | |
void | ytLib_malloc (size_t size, int code, int location) |
Allocates memory. | |
Variables | |
FILE * | ytLib_ERR |
File pointer for error output. | |
size_t ytLib_getAllocMemory | ( | ) |
Returns the total size of allocated memory.
To use this, set ENABLE_MEMCHECK=1
when compiling the binary.
void ytLib_malloc | ( | size_t | size, |
int | code, | ||
int | location | ||
) |
Allocates memory.
size | byte size to allocate |
code | Error code if failed to allocate. |
location | Error location code. If 0, ingored. |
void ytLib_showMemoryTable | ( | FILE * | fp | ) |
Prints the ytLib memory table.
To use this, set ENABLE_MEMCHECK=1
when compling the binary.
|
extern |
File pointer for error output.
This variable is used for the message output by all the YT Lib routines. This is initialized to stderr
in ytLib_init().