From e496f24427bec74cf657b7bf078d5c9119aa16d9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 14 Oct 2017 18:07:03 +0200 Subject: [PATCH] Use standard c++ features. --- client/tracy_rpmalloc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/tracy_rpmalloc.cpp b/client/tracy_rpmalloc.cpp index 12f4b1f2..307eff08 100644 --- a/client/tracy_rpmalloc.cpp +++ b/client/tracy_rpmalloc.cpp @@ -305,7 +305,7 @@ struct span_t { //! Previous span span_t* prev_span; }; -_Static_assert(sizeof(span_t) <= SPAN_HEADER_SIZE, "span size mismatch"); +static_assert(sizeof(span_t) <= SPAN_HEADER_SIZE, "span size mismatch"); struct span_counter_t { //! Allocation high water mark @@ -350,7 +350,7 @@ struct heap_t { size_t global_to_thread; #endif }; -_Static_assert(sizeof(heap_t) <= PAGE_SIZE*2, "heap size mismatch"); +static_assert(sizeof(heap_t) <= PAGE_SIZE*2, "heap size mismatch"); struct size_class_t { //! Size of blocks in this class @@ -362,7 +362,7 @@ struct size_class_t { //! Class index this class is merged with uint16_t class_idx; }; -_Static_assert(sizeof(size_class_t) == 8, "Size class size mismatch"); +static_assert(sizeof(size_class_t) == 8, "Size class size mismatch"); //! Global size classes static size_class_t _memory_size_class[SIZE_CLASS_COUNT];