twn_util.h: make return structs comply to type naming

This commit is contained in:
veclavtalica committed 2024-10-28 12:39:42 +03:00
1 parent d11143ac86
commit eff9fe6918
2 files changed
+10 -8

No files matched your search

+6 -4
View File
@@ -79,12 +79,14 @@ TWN_API int32_t timer_tick_frames(int32_t frames_left);
/* note that it should be decremented only on the next tick after its creation */
TWN_API float timer_tick_seconds(float seconds_left);
TWN_API struct timer_elapse_frames_result {
typedef struct TimerElapseFramesResult {
bool elapsed; int32_t frames_left;
} timer_elapse_frames(int32_t frames_left, int32_t interval);
} TimerElapseFramesResult;
TWN_API TimerElapseFramesResult timer_elapse_frames(int32_t frames_left, int32_t interval);
TWN_API struct timer_elapse_seconds_result {
typedef struct TimerElapseSecondsResult {
bool elapsed; float seconds_left;
} timer_elapse_seconds(float seconds_left, float interval);
} TimerElapseSecondsResult;
TWN_API TimerElapseSecondsResult timer_elapse_seconds(float seconds_left, float interval);
#endif