SDL_LogCritical(3)

πŸ’– SDL_LogCritical(3) πŸ’–

okay so bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where today's main character is SDL_LogCritical πŸŽ€


✨ NAME ✨

SDL_LogCritical β€” logs a message with SDL_LOG_PRIORITY_CRITICAL. that's it, that's the whole vibe. it's the "girl, something is ON FIRE" tier of logging πŸ”₯


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_log.h>

void SDL_LogCritical(int category, const char *fmt, ...);

like look at her. short. elegant. devastating. πŸ’…


πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • category β€” the category of the message. it's giving "which department is this chaos coming from" 🏷️
  • fmt β€” a printf() style message format string. yes, the classic % tokens, we love a format string 🧚
  • ... β€” additional parameters matching % tokens in the fmt string, if any. if there aren't any, no worries, it's optional ✨

πŸ”₯ THREAD SAFETY πŸ”₯

It is safe to call this function from any thread. any thread bestie, ANY of them πŸŒˆπŸ‘‘


πŸ’œ AVAILABILITY πŸ’œ

This function is available since SDL 3.2.0. so if you're on something older... it's giving not yet, babe 😭


🌟 SEE ALSO 🌟

the whole log family, a whole friend group honestly 🫢


ngl, critical means critical. this is the loudest thing in the log priority lineup β€” save it for when stuff is genuinely going wrong, not for "hmm the texture looks slightly off" πŸ™ˆ

okay that's the page!! πŸ’– brought to you by Simple Directmedia Layer, version SDL 3.4.18, and this exact SDL_LogCritical(3) page β€” mwah, slay, periodt πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from