SDL_EnumerationResult(3type)
π SDL_EnumerationResult π
okay so bestie, welcome to the SDL3 DATATYPES corner of the manual, where we're talking about SDL_EnumerationResult β aka the lil enum that tells your enumeration callback how to behave. it's giving "three moods, pick one" energy and honestly? iconic. π
β¨ NAME β¨
SDL_EnumerationResult β the possible results you can hand back from an enumeration callback. like, when someone's walking through a directory and asks you "keep going or nah?", this is your answer. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_filesystem.h>
typedef enum SDL_EnumerationResult
{
SDL_ENUM_CONTINUE, /**< Value that requests that enumeration continue. */
SDL_ENUM_SUCCESS, /**< Value that requests that enumeration stop, successfully. */
SDL_ENUM_FAILURE /**< Value that requests that enumeration stop, as a failure. */
} SDL_EnumerationResult;
so like, three values, three vibes:
SDL_ENUM_CONTINUEβ "keep it movin' bestie", the value that requests that enumeration continue. no notes, carry on. π¦SDL_ENUM_SUCCESSβ "we're done here and it went great β¨", the value that requests that enumeration stop, successfully.SDL_ENUM_FAILUREβ "stop the count, something went wrong π", the value that requests that enumeration stop, as a failure.
heads up: those /**< ... */ comments are literally in the source, so I kept them exactly where they live. character for character, no cap. π«Ά
π AVAILABILITY π
this enum has been available since SDL 3.2.0. it's not new new, but it's not ancient either β it's in its main character era. β
π SEE ALSO π
SDL_EnumerateDirectoryCallback(3type)β the callback that actually returns one of these. go read it, it's the whole point. iykyk π
Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_EnumerationResult(3type)
that's the whole page babes π go forth and enumerate responsibly. mwah. πβ¨πΈπ¦π
π¦ 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