twn_utils.c: make profiling public

This commit is contained in:
veclavtalica 2025-01-25 00:53:44 +03:00
parent 597168c282
commit 34a3de73c6
2 changed files with 4 additions and 4 deletions

View File

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

View File

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