๐งฉ Extension Helper Macros
Short Description
Small compile-time checks to detect installed Gorgeous plugins and core subsystems.
Long Description
These macros provide simple preprocessor helpers that evaluate to boolean expressions at compile-time when the corresponding macros are defined by the build. They are lightweight guards you can use to include/exclude code depending on which Gorgeous subsystems or plugins are available.
๐ Macros
GORGEOUS_PLUGIN_INSTALLED(PluginName)
Expands to the build-time symbol GORGEOUSTHINGS_WITH_<PluginName> which the build system defines for selected plugin builds. Use this to conditionally compile code that depends on optional Gorgeous plugins.
#if GORGEOUS_PLUGIN_INSTALLED(FOOPLUGIN)
// Code that requires FOOPLUGIN
#endif
GORGEOUS_GENERAL_SYSTEM_INSTALLED(SystemName)
Expands to GORGEOUS_SYSTEM_INSTALLED_<SystemName> and is intended to detect optional core systems provided by the Gorgeous core module.
#if GORGEOUS_GENERAL_SYSTEM_INSTALLED(InteractionFoundation)
// Use interaction system APIs
#endif
Notes
- These macros are only meaningful if the corresponding
GORGEOUSTHINGS_WITH_*orGORGEOUS_SYSTEM_INSTALLED_*symbols are defined by your build configuration.
Where to find the header
src/content/gorgeous-core/RuntimeUtilities/Helpers/Headers/Macros/GorgeousExtensionHelperMacros.h