SDL_ResetAssertionReport(3)

✨ NAME ✨

okay so this is SDL_ResetAssertionReport(3), the SDL3 FUNCTIONS bestie whose whole personality is: clear the list of all assertion failures. no cap, that's the job. πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_assert.h>

void SDL_ResetAssertionReport(void);

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, this function will clear the list of all assertions that got triggered up to that point. immediately after this call, SDL_GetAssertionReport will return no items β€” like, zero, nada, empty. ✨

also, any previously-triggered assertions get reset to a trigger_count of zero, and their always_ignore state will be false. so yeah, it's giving factory reset but for assertion drama. πŸ§ΉπŸ’–


πŸ’€ THREAD SAFETY πŸ’€

warning bestie β€” this function is not thread safe. if other threads are triggering an assertion, or if they're simultaneously calling this function, it may cause memory leaks or crashes. πŸ’€ like, do not do that, fr fr.

πŸ‘‘ AVAILABILITY πŸ‘‘

this function is available since SDL 3.2.0. iconic, we love a timestamp. πŸŽ€


🌈 SEE ALSO 🌈


byeee bestie β€” this was Simple Directmedia Layer, version SDL 3.4.18, and SDL_ResetAssertionReport(3) is out. date? not in the footer, so we're keeping it mysterious. mwah πŸ’…βœ¨

πŸ“¦ where this page comes from