mem_loginfo_t Struct Reference

contains the information about invalid memory operations. More...

#include <memory.h>


Data Fields

const void * p
size_t size
const char * ifile
const char * ifunc
int iline
const char * afile
const char * afunc
int aline
size_t asize


Detailed Description

contains the information about invalid memory operations.

An object of the type mem_loginfo_t is used when the information about an invalid memory operation is delivered to a user-provided log function. As explained in mem_log(), such a function must be declared to accept a mem_loginfo_t arguments.

Its members contains three kinds of information:

If any of them is not available, they are set to a null pointer (for ifile, ifunc, afile and afunc) or 0 (for size, iline, aline and asize).

Warning:
Logging invalid memory operations is activated by mem_log() which is available only when the debugging version (not the production version) is used.

Field Documentation

const char* mem_loginfo_t::afile

file name in which storage in problem originally allocated

const char* mem_loginfo_t::afunc

function name in which storage in problem originally allocated

line number on which storage in problem originally allocated

size of storage in problem when allocated before

const char* mem_loginfo_t::ifile

file name in which invalid memory operation invoked

const char* mem_loginfo_t::ifunc

function name in which invalid memory operation invoked

line number on which invalid memory operation invoked

const void* mem_loginfo_t::p

pointer value used in invalid memory operation

requested size; meaningful only when triggered by mem_resize()


The documentation for this struct was generated from the following file:

Generated on Mon Jan 24 01:12:41 2011 for The Memory Management Library by  doxygen 1.5.8