fix input

This commit is contained in:
MihailRis
2025-04-02 14:55:53 +03:00
parent bccdeec7b8
commit 611c6fa444
2 changed files with 13 additions and 4 deletions
+7
View File
@@ -239,6 +239,13 @@ const Binding& Bindings::require(const std::string& name) const {
throw std::runtime_error("binding '" + name + "' does not exist");
}
Binding& Bindings::require(const std::string& name) {
if (const auto found = get(name)) {
return *found;
}
throw std::runtime_error("binding '" + name + "' does not exist");
}
void Bindings::read(const dv::value& map, BindType bindType) {
for (auto& [sectionName, section] : map.asObject()) {
for (auto& [name, value] : section.asObject()) {