libcopp
2.2.0
include
libcopp
stack
stack_allocator.h
Go to the documentation of this file.
1
// Copyright 2023 owent
2
3
#pragma once
4
5
#include <libcopp/utils/config/libcopp_build_features.h>
6
7
#include <
libcopp/utils/features.h
>
8
9
#include "
allocator/stack_allocator_malloc.h
"
10
#include "
allocator/stack_allocator_memory.h
"
11
#include "
allocator/stack_allocator_pool.h
"
12
13
#ifdef LIBCOPP_MACRO_USE_SEGMENTED_STACKS
14
# include "
allocator/stack_allocator_split_segment.h
"
15
#endif
16
17
#ifdef LIBCOPP_MACRO_SYS_POSIX
18
# include "
allocator/stack_allocator_posix.h
"
19
LIBCOPP_COPP_NAMESPACE_BEGIN
20
namespace
allocator
{
21
using
default_statck_allocator = stack_allocator_posix;
22
}
23
LIBCOPP_COPP_NAMESPACE_END
24
25
#elif defined(LIBCOPP_MACRO_SYS_WIN)
26
27
# include "
allocator/stack_allocator_windows.h
"
28
LIBCOPP_COPP_NAMESPACE_BEGIN
29
namespace
allocator
{
30
using
default_statck_allocator = stack_allocator_windows;
31
}
32
LIBCOPP_COPP_NAMESPACE_END
33
34
#else
35
36
# error unknown stack allocator
37
38
#endif
features.h
allocator
Definition:
stack_allocator_malloc.h:18
stack_allocator_malloc.h
stack_allocator_memory.h
stack_allocator_pool.h
stack_allocator_posix.h
stack_allocator_split_segment.h
stack_allocator_windows.h
Generated by
1.9.1