| 69 | template<typename ET> |
| 70 | requires (std::is_enum_v<ET>) |
| 71 | ET get(Value& ar, const std::string &key, const ET& default_) |
| 72 | { |
| 73 | return static_cast<ET>(as<UInt64>(ar.get(key, static_cast<uint64_t>(default_)))); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | namespace DFHack { namespace debugPlugin { |
no test coverage detected