Euphoria
feature_flags.h
Go to the documentation of this file.
1#pragma once
2
3// will error if check is not defined or typo
4// https://x.com/voxagonlabs/status/1821444613430763778
5
6#define FF_IS_ENABLED +
7#define FF_IS_DISABLED -
8#define FF_HAS(x) (1 x 1)
9
10// #define FEATURE_A FF_IS_ENABLED
11//
12// #if FF_HAS(FEATURE_A)
13// ...
14// #else
15// ...
16// #endif