SDL_LINE(3)

πŸ’– SDL_LINE πŸ’–

okay bestie, welcome to the SDL_LINE page, part of the SDL3 functions manual (yes, that SDL, the Simple Directmedia Layer one 🌈). This one's a little macro and it is genuinely so simple it's giving main character energy ✨


🌸 NAME 🌸

SDL_LINE β€” a macro that reports the current line number of the file being compiled. that's it. that's the whole job. and she does it flawlessly πŸ’…


✨ SYNOPSIS ✨

#include <SDL3/SDL_assert.h>

#define SDL_LINE    __LINE__

so you pull in the header, and the macro is literally just __LINE__ under the hood. no cap, that's the whole thing πŸŽ€


πŸ¦‹ AVAILABILITY πŸ¦‹

This macro is available since SDL 3.2.0. so if you're on something older, bestie, it's simply not gonna be there for you 😭 upgrade era fr fr.


and that's the page!! go forth and know what line you're on, queen πŸ‘‘

this cutie was brought to you by the Simple Directmedia Layer crew, SDL 3.4.18, filed under SDL3 FUNCTIONS in the manual β€” mwah, love u, bye πŸ«ΆπŸ’–

πŸ“¦ where this page comes from