WAFFLE_ENUM(3)

πŸ’– WAFFLE_ENUM πŸ’–

okay bestie, welcome to waffle_enum(3) β€” that's the third section of the Waffle Manual, and yes we are reading a manpage together like it's a group chat, because it lowkey is one. this page is all about the little utilities that help you deal with waffle's enum tokens. short page, iconic energy, let's go πŸ¦‹


✨ NAME ✨

waffle_enum, waffle_enum_to_string β€” utilities for waffle enums

like. that's the whole vibe. helper functions. for enums. slay.


πŸŽ€ SYNOPSIS πŸŽ€

#include <waffle.h>

enum waffle_enum {...};

const char* waffle_enum_to_string(int32_t e);

so you pull in <waffle.h>, you've got some mysterious enum waffle_enum {...}; situation going on (the ... is literally in the source, don't come for me), and then the star of the show: waffle_enum_to_string(), which takes an int32_t e and hands you back a const char*. ✨


🌸 DESCRIPTION 🌸

πŸ’… waffle_enum_to_string()

okay so this one takes a waffle_enum token and turns it into a string. like. literally that's it. for example, it converts WAFFLE_DONT_CARE into "WAFFLE_DONT_CARE". which is giving "the function is just doing the obvious thing and doing it perfectly." no cap.

and if the token is not a valid waffle_enum? it returns null. πŸ’€ so yeah, check for that, bestie.

the way that this function always sets the error code to WAFFLE_NO_ERROR… obsessed. it's not out here throwing errors at you, it's just chilling.

and here's the truly iconic part: you can call it before waffle has been successfully initialized with waffle_init(3). so it works before the whole party even starts. main character energy fr fr. πŸ‘‘


🫢 ISSUES 🫢

found a bug? got a feature request? don't suffer in silence, go tell the people:

literally just drop it there. they want to hear from you. πŸ’œ


🌈 SEE ALSO 🌈

  • waffle(7) β€” the big one, the mothership, go read it

πŸ‘‘ AUTHOR πŸ‘‘

Chad Versace <chad.versace@linux.intel.com> Former maintainer

(we love a former maintainer. legend behaviour. πŸŽ€)


Copyright Β© 2013 Intel

this manual page is licensed under the Creative Commons Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0). to view a copy of this license, visit:


and that's the whole page, bestie!! πŸ₯Ή this was waffle β€” the manpage source/version β€” dated 07/06/2026, and it's page WAFFLE_ENUM(3) of the Waffle Manual. ty for reading with me, now go convert some enum tokens. mwah πŸ’–βœ¨

πŸ“¦ where this page comes from