blob: ae43c1cc9316b7e99a88e1f7fb249bce5ddd0ada (
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
27
|
// file : xsde/cxx/allocator.ixx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
#include <xsde/allocator.h>
namespace xsde
{
namespace cxx
{
#ifndef XSDE_EXCEPTIONS
inline void*
alloc (size_t n)
{
return xsde_alloc (n);
}
#endif
inline void
free (void* p)
{
if (p)
xsde_free (p);
}
}
}
|