diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-08-10 11:26:26 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-08-12 20:02:11 +1000 |
| commit | 560e3631ec57d34c679e6b0faec1e0efdd18d915 (patch) | |
| tree | 4b4e00ab1fefaaa4a98b3d6a7c46fab50120fd8b /src/option.hh | |
| parent | 6ed01f402b3a54495c8d9e462b7674864fbbe402 (diff) | |
Move debug utils to debug.hh/debug.cc
Lots of code includes buffer_utils.hh just for write_to_debug_buffer
which pulls many unnecessary dependencies. Reorganise to reduce
compile times.
Diffstat (limited to 'src/option.hh')
| -rw-r--r-- | src/option.hh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/option.hh b/src/option.hh index 732fefca..b6edca0c 100644 --- a/src/option.hh +++ b/src/option.hh @@ -64,29 +64,6 @@ struct PrefixedList template<typename T> using TimestampedList = PrefixedList<size_t, T>; -enum class DebugFlags -{ - None = 0, - Hooks = 1 << 0, - Shell = 1 << 1, - Profile = 1 << 2, - Keys = 1 << 3, - Commands = 1 << 4, -}; - -constexpr bool with_bit_ops(Meta::Type<DebugFlags>) { return true; } - -constexpr auto enum_desc(Meta::Type<DebugFlags>) -{ - return make_array<EnumDesc<DebugFlags>>({ - { DebugFlags::Hooks, "hooks" }, - { DebugFlags::Shell, "shell" }, - { DebugFlags::Profile, "profile" }, - { DebugFlags::Keys, "keys" }, - { DebugFlags::Commands, "commands" }, - }); -} - } #endif // option_hh_INCLUDED |
