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 β
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
- ubuntu stonking: libwaffle-doc 1.8.3-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms