SDL_LogDebug(3)

πŸ’– SDL_LogDebug(3) πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, this one's called SDL_LogDebug and she's literally just here to yell things at your debug log πŸŽ€


✨ NAME ✨

SDL_LogDebug β€” logs a message with SDL_LOG_PRIORITY_DEBUG. that's it. that's the whole job. she's a one-trick pony and she's iconic for it πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_log.h>

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

no cap, that's the whole signature. void in, vibes out ✨


πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • category β€” the category of the message. like, which little folder does this log belong in πŸ“
  • fmt β€” a printf() style message format string. yes, the classic percent-sign situation, you know the drill πŸ’–
  • ... β€” additional parameters matching % tokens in the fmt string, if any. if there are none, don't pass any, it's giving balanced 🫢

πŸ”₯ THREAD SAFETY πŸ”₯

It is safe to call this function from any thread. ANY THREAD. go wild, queen, no locks needed, no drama, she's built different πŸ‘‘


⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0. if you're on something older, sorry babe, time to update πŸ™ˆ


πŸ’œ SEE ALSO πŸ’œ

your girl does not roll alone, here's the whole friend group πŸ«‚


lowkey a reminder: this is the DEBUG priority one, so she's the quietest of the loud kids β€” perfect for "wait why did this happen" detective work πŸ”

okay that's the page!! brought to you by Simple Directmedia Layer, SDL 3.4.18, and this exact SDL_LogDebug(3) moment in time πŸ’– log responsibly, bestie, ily, bye!! πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from