diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-11-20 08:50:53 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-11-20 09:06:53 +0000 |
| commit | 5e4f5cd2a01605bdbce062011d15318d089da6c9 (patch) | |
| tree | 8cd504c586bd99d96360cb2119a13fb40c13b54c /src/client.hh | |
| parent | c0f1b7b99f6b882e9622f41e1ff05f927210ce90 (diff) | |
Move enum option handling in enum.hh and refactor enum options
Diffstat (limited to 'src/client.hh')
| -rw-r--r-- | src/client.hh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/client.hh b/src/client.hh index f16bd09b..7a0c8571 100644 --- a/src/client.hh +++ b/src/client.hh @@ -7,6 +7,7 @@ #include "safe_ptr.hh" #include "utils.hh" #include "option_manager.hh" +#include "enum.hh" namespace Kakoune { @@ -84,6 +85,24 @@ private: SafePtr<Buffer> m_last_buffer; }; +enum class Autoreload +{ + Yes, + No, + Ask +}; + +constexpr Array<EnumDesc<Autoreload>, 5> enum_desc(Autoreload) +{ + return { { + { Autoreload::Yes, "yes" }, + { Autoreload::No, "no" }, + { Autoreload::Ask, "ask" }, + { Autoreload::Yes, "true" }, + { Autoreload::No, "false" } + } }; +} + } #endif // client_hh_INCLUDED |
