43#ifndef PPM_XFUNCS_INCLUDED
44#define PPM_XFUNCS_INCLUDED
68#define xcalloc(nmemb,size) \
69 SymPrefix(xcalloc)((nmemb), (size), __FILE__, __LINE__)
70#define xmalloc(size) SymPrefix(xmalloc)((size), __FILE__, __LINE__)
71#define xrealloc(ptr,size) \
72 SymPrefix(xrealloc)((ptr), (size), __FILE__, __LINE__)
76 const char *source,
int line);
78#define xfopen(path, mode) SymPrefix(xfopen)(path, mode, __FILE__, __LINE__)
83#define xfclose(fp) SymPrefix(xfclose)(fp, __FILE__, __LINE__)
88#define xfputc(c,stream) SymPrefix(xfputc)((c),(stream), __FILE__, __LINE__)
92SymPrefix(xmpi)(
int errcode,
const char *source,
int line);
94#define xmpi(errcode) \
96 if (errcode == MPI_SUCCESS) ; else \
97 SymPrefix(xmpi)(errcode, __FILE__, __LINE__); \
#define xfputc(c, stream)
#define xrealloc(ptr, size)
#define xcalloc(nmemb, size)
#define xfopen(path, mode)
Define library-specific symbol prefix macros.
#define SymPrefix(symbol)