diff options
Diffstat (limited to 'src/feature.h')
-rw-r--r-- | src/feature.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/feature.h b/src/feature.h index 8d9b093b..61be9e68 100644 --- a/src/feature.h +++ b/src/feature.h @@ -28,19 +28,21 @@ class Features { void AddOptions(OptionParser*); void EnableAll() { -#define WABT_FEATURE(variable, flag, help) enable_##variable(); +#define WABT_FEATURE(variable, flag, default_, help) enable_##variable(); #include "src/feature.def" #undef WABT_FEATURE } -#define WABT_FEATURE(variable, flag, help) \ +#define WABT_FEATURE(variable, flag, default_, help) \ bool variable##_enabled() const { return variable##_enabled_; } \ - void enable_##variable() { variable##_enabled_ = true; } + void enable_##variable() { variable##_enabled_ = true; } \ + void disable_##variable() { variable##_enabled_ = false; } #include "src/feature.def" #undef WABT_FEATURE private: -#define WABT_FEATURE(variable, flag, help) bool variable##_enabled_ = false; +#define WABT_FEATURE(variable, flag, default_, help) \ + bool variable##_enabled_ = default_; #include "src/feature.def" #undef WABT_FEATURE }; |