summaryrefslogtreecommitdiff
path: root/perlmem.h
blob: 5c2efdbf235e228192e6247655562a49cdb28a2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef H_PERLMEM
#define H_PERLMEM 1

#ifdef PERL_OBJECT

#include "ipmem.h"

#define PerlMem_malloc(size) piMem->Malloc((size))
#define PerlMem_realloc(buf, size) piMem->Realloc((buf), (size))
#define PerlMem_free(buf) piMem->Free((buf))
#else
#define PerlMem_malloc(size) malloc((size))
#define PerlMem_realloc(buf, size) realloc((buf), (size))
#define PerlMem_free(buf) free((buf))

#endif	/* PERL_OBJECT */

#endif /* Include guard */