diff options
Diffstat (limited to 'libxsde/xsde/allocator.h')
-rw-r--r-- | libxsde/xsde/allocator.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libxsde/xsde/allocator.h b/libxsde/xsde/allocator.h new file mode 100644 index 0000000..771f893 --- /dev/null +++ b/libxsde/xsde/allocator.h @@ -0,0 +1,27 @@ +// file : xsde/allocator.h +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2010 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 |