From 3733b53cc5861a06432c505fc7e61d7728f137a4 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 4 Feb 2025 09:07:31 +0300 Subject: [PATCH] twn_utils.c: fix profile command type --- include/twn_util.h | 4 ++-- src/twn_util.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/twn_util.h b/include/twn_util.h index 9c8b12a..afeb956 100644 --- a/include/twn_util.h +++ b/include/twn_util.h @@ -81,8 +81,8 @@ TWN_API void log_vec2(Vec2 value, char const *identity); TWN_API void log_vec3(Vec3 value, char const *identity); TWN_API void log_rect(Rect value, char const *identity); -TWN_API void profile_start(char profile[const static 1]); -TWN_API void profile_end(char profile[const static 1]); +TWN_API void profile_start(char const *profile); +TWN_API void profile_end(char const *profile); TWN_API void profile_list_stats(void); #endif diff --git a/src/twn_util.c b/src/twn_util.c index 91a48e8..1231300 100644 --- a/src/twn_util.c +++ b/src/twn_util.c @@ -301,7 +301,7 @@ char *expand_asterisk(const char *mask, const char *to) { } -void profile_start(char profile[const static 1]) { +void profile_start(char const *profile) { /* stamp time immediately, so to not have influence of our profile lookup */ uint64_t const counter = SDL_GetPerformanceCounter(); @@ -318,7 +318,7 @@ void profile_start(char profile[const static 1]) { } -void profile_end(char profile[const static 1]) { +void profile_end(char const *profile) { /* stamp time immediately, so to not have influence of our profile lookup */ uint64_t const counter = SDL_GetPerformanceCounter();