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