libsdl-org / sdlwiki

This is the raw contents of SDL's wiki. You can edit this through GitHub or at https://wiki.libsdl.org/ now!
https://wiki.libsdl.org/
84 stars 38 forks source link

SDL3/SDL_EnumerateProperties: Add code example enumerating display properties #632

Closed SDLWikiBot closed 1 day ago

SDLWikiBot commented 4 days ago

This edit was made by @mariobadr.

Live page is here: https://wiki.libsdl.org/SDL3/SDL_EnumerateProperties

If this user should be blocked from further edits, an admin should go to https://wiki.libsdl.org/mariobadr/block If this user should be trusted to make direct pushes to main, without a pull request, an admin should go to https://wiki.libsdl.org/mariobadr/trust

WHETHER YOU MERGE OR REJECT THIS PULL REQUEST, DON'T FORGET TO DELETE THE BRANCH. Otherwise, mariobadr won't be able to start a new PR for this page.

mariobadr commented 4 days ago

On my system, compilation fails when using %ld. In this pull request, compilation fails because I used %lld. Is there a more portable way to print Sint64?

mariobadr commented 4 days ago

TIL about SDL_PRIu64 (via: https://stackoverflow.com/a/8679). Could you please reject this pull request and I will re-edit the wiki with the appropriate format specifier? Thanks!

icculus commented 1 day ago

Just click edit again, it'll notice this pull request and let you update it. :)

icculus commented 1 day ago

Ah, you got it already. Merging!