Allocator.cpp 570 B

123456789101112131415161718192021
  1. /**
  2. * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. * SPDX-License-Identifier: Apache-2.0.
  4. */
  5. #include <aws/crt/Allocator.h>
  6. namespace Aws
  7. {
  8. namespace Crt
  9. {
  10. Allocator *DefaultAllocatorImplementation() noexcept { return aws_default_allocator(); }
  11. Allocator *DefaultAllocator() noexcept { return DefaultAllocatorImplementation(); }
  12. Allocator *g_allocator = Aws::Crt::DefaultAllocatorImplementation();
  13. Allocator *ApiAllocator() noexcept { return g_allocator; }
  14. } // namespace Crt
  15. } // namespace Aws