Skip to content

Commit

Permalink
Deprecate constant virtual_memory_page_size.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany authored and foonathan committed Mar 30, 2022
1 parent e9380b1 commit 5e523a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/foonathan/memory/virtual_memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ namespace foonathan
/// All virtual memory allocations must be multiple of this size.
/// It is usually 4KiB.
/// \ingroup allocator
/// \deprecated use \ref get_virtual_memory_page_size instead.
extern const std::size_t virtual_memory_page_size;

/// \returns the page size of the virtual memory.
Expand Down
2 changes: 1 addition & 1 deletion test/default_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ TEST_CASE("static_allocator")
TEST_CASE("virtual_memory_allocator")
{
virtual_memory_allocator alloc;
check_default_allocator(alloc, virtual_memory_page_size);
check_default_allocator(alloc, get_virtual_memory_page_size());
}

0 comments on commit 5e523a9

Please sign in to comment.