libcopp  2.2.0
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 
8 
12 
13 #ifdef LIBCOPP_MACRO_USE_SEGMENTED_STACKS
15 #endif
16 
17 #ifdef LIBCOPP_MACRO_SYS_POSIX
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 
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