aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/allocator.h
blob: 7770e7012f8841a588168ab317566a87633d0fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// file      : xsde/allocator.h
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

#ifndef XSDE_ALLOCATOR_HXX
#define XSDE_ALLOCATOR_HXX

#include <stddef.h> // size_t

#ifdef __cplusplus
extern "C"
{
#endif

// Custom allocator functions. Your implementation should always return
// 0 on failure, regardless of whether exceptions are enabled or not.
//
void* xsde_alloc (size_t);
void* xsde_realloc (void*, size_t);
void xsde_free (void*);

#ifdef __cplusplus
}
#endif

#endif // XSDE_ALLOCATOR_HXX