aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/allocator.ixx
blob: dc5c319d69a08875431b19253ef543d5eb2201d1 (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
// file      : xsde/cxx/allocator.ixx
// 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);
    }
  }
}