twn_utils.c: fix profile command type

This commit is contained in:
veclavtalica 2025-02-04 09:07:31 +03:00
parent b6b436e1b7
commit 3733b53cc5
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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();