1
/*
2
 * prmem.h
3
 * Copyright (C) 2009 Adrian Perez <aperez@igalia.com>
4
 *
5
 * Distributed under terms of the MIT license.
6
 */
7
8
#ifndef __prmem_h__
9
#define __prmem_h__
10
11
#include <stdlib.h>
12
13
/*
14
 * Definitions needed to get rid of the following:
15
 *    nsprpub/pr/include/prmem.h
16
 */
17
#define PR_Malloc malloc
18
#define PR_Free   free
19
20
#define PR_DELETE(_ptr) { PR_Free(_ptr) ; (_ptr) = NULL; }
21
#define PR_FREEIF(_ptr) if (_ptr) PR_DELETE(_ptr)
22
23
#endif /* !__prmem_h__ */