100.00% Lines (2/2) 100.00% Functions (1/1)
TLA Baseline Branch
Line Hits Code Line Hits Code
1   // 1   //
2   // Copyright (c) 2026 Steve Gerbino 2   // Copyright (c) 2026 Steve Gerbino
3   // 3   //
4   // Distributed under the Boost Software License, Version 1.0. (See accompanying 4   // Distributed under the Boost Software License, Version 1.0. (See accompanying
5   // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5   // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6   // 6   //
7   // Official repository: https://github.com/cppalliance/capy 7   // Official repository: https://github.com/cppalliance/capy
8   // 8   //
9   9  
10   #include <boost/capy/ex/frame_allocator.hpp> 10   #include <boost/capy/ex/frame_allocator.hpp>
11   11  
12   #if (defined(BOOST_CAPY_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && \ 12   #if (defined(BOOST_CAPY_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && \
13   !defined(BOOST_CAPY_STATIC_LINK) 13   !defined(BOOST_CAPY_STATIC_LINK)
14   14  
15   namespace boost { 15   namespace boost {
16   namespace capy { 16   namespace capy {
17   namespace detail { 17   namespace detail {
18   18  
19   std::pmr::memory_resource*& 19   std::pmr::memory_resource*&
HITCBC 20   856220 current_frame_allocator_ref() noexcept 20   851085 current_frame_allocator_ref() noexcept
21   { 21   {
22   static thread_local std::pmr::memory_resource* mr = nullptr; 22   static thread_local std::pmr::memory_resource* mr = nullptr;
HITCBC 23   856220 return mr; 23   851085 return mr;
24   } 24   }
25   25  
26   } // namespace detail 26   } // namespace detail
27   } // namespace capy 27   } // namespace capy
28   } // namespace boost 28   } // namespace boost
29   29  
30   #endif 30   #endif