From f80a0a87bd0d4ffc90f734eeb029dae5f82ef462 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 1 Jul 2019 19:16:15 +0200 Subject: [PATCH] Remove const qualifier from TracyCZoneCtx. Some containers don't support storing const types. This struct, as visible to user, is immutable, so treat it as if const was declared here. --- TracyC.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TracyC.h b/TracyC.h index 8178341a..c5137cd5 100644 --- a/TracyC.h +++ b/TracyC.h @@ -61,7 +61,9 @@ struct ___tracy_c_zone_context int active; }; -typedef const struct ___tracy_c_zone_context TracyCZoneCtx; +// Some containers don't support storing const types. +// This struct, as visible to user, is immutable, so treat it as if const was declared here. +typedef /*const*/ struct ___tracy_c_zone_context TracyCZoneCtx; TracyCZoneCtx ___tracy_emit_zone_begin( const struct ___tracy_source_location_data* srcloc, int active ); TracyCZoneCtx ___tracy_emit_zone_begin_callstack( const struct ___tracy_source_location_data* srcloc, int depth, int active );