SDL_LogPriority(3type)

πŸ’– SDL_LogPriority(3type) πŸ’–

okay so bestie, we're in the SDL3 DATATYPES manual rn and today's main character is SDL_LogPriority. it's not that deep, but it IS important, so let's go 🫢


πŸŽ€ NAME πŸŽ€

SDL_LogPriority β€” the predefined log priorities ✨

like, the little vibe-labels SDL uses to say "this message is a whisper" vs "this message is the building on fire". the predefined log priorities, fr fr.


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_log.h>

typedef enum SDL_LogPriority
{
    SDL_LOG_PRIORITY_INVALID,
    SDL_LOG_PRIORITY_TRACE,
    SDL_LOG_PRIORITY_VERBOSE,
    SDL_LOG_PRIORITY_DEBUG,
    SDL_LOG_PRIORITY_INFO,
    SDL_LOG_PRIORITY_WARN,
    SDL_LOG_PRIORITY_ERROR,
    SDL_LOG_PRIORITY_CRITICAL,
    SDL_LOG_PRIORITY_COUNT
} SDL_LogPriority;

look at that enum. SDL_LOG_PRIORITY_INVALID is sitting at the top being the "not a real priority bestie" placeholder, then it goes TRACE, VERBOSE, DEBUG, INFO, WARN, ERROR, CRITICAL, and finally SDL_LOG_PRIORITY_COUNT closes the group out at the bottom. that's the whole list, in that exact order, no notes πŸ’…

no cap: don't go renaming these or reordering them in your head. the enum is the enum. copy it character for character and you're golden 🌟

πŸ‘‘ AVAILABILITY πŸ‘‘

this enum is available since SDL 3.2.0. that's it, that's the whole section. it's giving "short but iconic" πŸ’–


πŸ¦‹ the sign-off πŸ¦‹

and that's the page!! thanks for coming to my ted talk. this one ships from Simple Directmedia Layer, version SDL 3.4.18, and the footer's date slot is literally just SDL_LogPriority(3type) which is so real of it β€” the page is dated by its own name, main character energy only 😭

stay logged, stay prioritized, mwah πŸŽ€βœ¨πŸŒΈπŸ’œ

πŸ“¦ where this page comes from