---
name: "waffle_enum"
section: "3"
platform: "linux"
package: "libwaffle-doc"
version: "1.8.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/waffle_enum"
---

# waffle\_enum(3)

Utilities for waffle enums

## NAME

waffle\_enum, waffle\_enum\_to\_string - Utilities for waffle enums

## SYNOPSIS

```
#include <waffle.h>
enum waffle_enum {...};
```

**const char\* waffle\_enum\_to\_string(int32\_t** *e***);**

## DESCRIPTION

**waffle\_enum\_to\_string()**

Convert an **waffle\_enum** token to a string. For example, convert **WAFFLE\_DONT\_CARE** to "WAFFLE\_DONT\_CARE". Return null if the token is not a valid **waffle\_enum**.

This function always sets the error code to **WAFFLE\_NO\_ERROR**. It can be called before waffle has been successfully initialized with [**waffle\_init**(3)](/waffle_init/3.md)

## ISSUES

Please report bugs or and feature requests to **https://gitlab.freedesktop.org/mesa/waffle/issues**.

## SEE ALSO

[**waffle**(7)](/waffle/7.md)

## AUTHOR

**Chad Versace** \<chad.versace@linux.intel.com\>

Former maintainer

## 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 **http://creativecommons.org.license/by-sa/3.0/us**.
