file: include/memcheck.h
/*---------------------------------------------------------------------------*
* RCS Information *
* *
* $Source: /users/sjs/Nektar/lib/include/RCS/memcheck.h,v $
* $Revision: 1.2 $
* $Date: 1994/10/19 18:36:13 $
* $Author: sjs $
* $State: Exp $
*---------------------------------------------------------------------------*/
#ifndef MEMCHECK_H
#define MEMCHECK_H
#include <sys/types.h>
#include <malloc.h>
#define memcheck { char *t = (char*) malloc(1); free(t); fprintf(stderr,\
"Made it passed %d in file %s \n",__LINE__,__FILE__); fflush(stderr);}
#ifdef NOT
#define memspace { struct mallinfo minfo = mallinfo();fprintf(stderr,\
"In %s at line %d, arena : %d, small space in use: %d \n", \
__FILE__,__LINE__,minfo.arena,minfo.usmblks);}
#endif
#endif
C++ to HTML Conversion by ctoohtml