WAFFLE_FEATURE_TEST_(7)
β¨ WAFFLE_FEATURE_TEST_(7) β¨
okay bestie, welcome to the Waffle Manual π
this is the page for waffle_feature_test_macros, and it's genuinely so useful so let's get into it π¦
πΈ NAME πΈ
waffle_feature_test_macros β the macros that control what definitions Waffle's headers expose to you π
π SYNOPSIS π
WAFFLE_API_VERSION
WAFFLE_API_EXPERIMENTAL
π DESCRIPTION π
So here's the vibe: Waffle's feature test macros let you, the programmer, control the definitions that get exposed by Waffle's headers when your program is compiled β¨ And it goes both ways too β these macros also let you control which Waffle features your program's source relies on π«Ά
Now the crucial part, like genuinely crucial, no cap: for a feature test macro to actually do anything, you have to define it before including any header files π€ You can do that either right in the compilation command:
cc -DMACRO=value
or by defining the macro inside your source code before any of the includes happen π
π¦ Specification of feature test macro requirements in manual pages π¦
When a function needs a feature test macro to be defined, the manual page docments it in the SYNOPSIS π And when an enum or a macro needs a feature test macro defined, the manual page documents it either in the SYNOPSIS or right where that enum or macro first shows up in the page β¨
π List of feature test macros π
WAFFLE_API_VERSION(since waffle 1.3) β this one controls the API version that Waffle's headers expose π The value is((major << 8) | minor)and it exposes the API of Waffle major.minor. For example, the value0x0103exposes the API of Waffle 1.3 π« And if this macro is left undefined? Then the headers expose the API of Waffle 1.2 πWAFFLE_API_EXPERIMENTALβ this one exposes experimental features in Waffle's headers π§ͺ and listen, this is the chaotic one: experimental features may be altered or removed without notice, and they do not belong to Waffle's stable API π so don't build your whole life on them, fr fr
π ISSUES π
Please report bugs or and feature requests to https://gitlab.freedesktop.org/mesa/waffle/issues πβ¨ (yes they said "or and", we love them for it, iconic)
π SEE ALSO π
π«Ά 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.
and that's the whole page bestie!! this one came from the waffle source, version dated 07/06/2026, and it's page WAFFLE_FEATURE_TEST_(7) in section 7 π go forth and define your macros before your includes, ily, bye πβ¨
π¦ 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