mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +00:00
Use standard c++ features.
This commit is contained in:
parent
bded83e458
commit
e496f24427
@ -305,7 +305,7 @@ struct span_t {
|
|||||||
//! Previous span
|
//! Previous span
|
||||||
span_t* prev_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 {
|
struct span_counter_t {
|
||||||
//! Allocation high water mark
|
//! Allocation high water mark
|
||||||
@ -350,7 +350,7 @@ struct heap_t {
|
|||||||
size_t global_to_thread;
|
size_t global_to_thread;
|
||||||
#endif
|
#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 {
|
struct size_class_t {
|
||||||
//! Size of blocks in this class
|
//! Size of blocks in this class
|
||||||
@ -362,7 +362,7 @@ struct size_class_t {
|
|||||||
//! Class index this class is merged with
|
//! Class index this class is merged with
|
||||||
uint16_t class_idx;
|
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
|
//! Global size classes
|
||||||
static size_class_t _memory_size_class[SIZE_CLASS_COUNT];
|
static size_class_t _memory_size_class[SIZE_CLASS_COUNT];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user