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β aprintf()style message format string. yes, the classic%tokens, we love a format string π§...β additional parameters matching%tokens in thefmtstring, 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 π
SDL_Log(3)SDL_LogDebug(3)SDL_LogError(3)SDL_LogInfo(3)SDL_LogMessage(3)SDL_LogMessageV(3)SDL_LogTrace(3)SDL_LogVerbose(3)SDL_LogWarn(3)
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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms