From 34a3de73c6321a4858ce9ab3889534dfe0d036fb Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sat, 25 Jan 2025 00:53:44 +0300 Subject: [PATCH] twn_utils.c: make profiling public --- include/twn_util.h | 4 ++++ src/twn_util_c.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/twn_util.h b/include/twn_util.h index 67246ff..14c532c 100644 --- a/include/twn_util.h +++ b/include/twn_util.h @@ -84,4 +84,8 @@ TWN_API void log_vec2(Vec2 vector, char const *message); TWN_API void log_vec3(Vec3 vector, char const *message); TWN_API void log_rect(Rect rect, char const *message); +TWN_API void profile_start(char profile[const static 1]); +TWN_API void profile_end(char profile[const static 1]); +TWN_API void profile_list_stats(void); + #endif diff --git a/src/twn_util_c.h b/src/twn_util_c.h index 8beb33e..c867ea3 100644 --- a/src/twn_util_c.h +++ b/src/twn_util_c.h @@ -23,10 +23,6 @@ _Noreturn void die_abruptly(void); /* note: you must free the returned string */ char *expand_asterisk(const char *mask, const char *to); -void profile_start(char profile[const static 1]); -void profile_end(char profile[const static 1]); -void profile_list_stats(void); - /* http://www.azillionmonkeys.com/qed/sqroot.html */ static inline float fast_sqrt(float x) {