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 🌈


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