type AP##name args;
#ifndef HAVE_SMPI
+// Internally disable these overrides (HAVE_SMPI is only defined when building the library)
#define malloc(nbytes) _sampi_malloc(nbytes)
#define calloc(n_elm,elm_size) _sampi_calloc(n_elm,elm_size)
#define realloc(ptr,nbytes) _sampi_realloc(ptr,nbytes)