aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/misc/Define.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-02-04 15:08:32 +0100
committer hop311 <hop3114@gmail.com>2024-02-04 15:08:32 +0100
commit3f6d7351816b0e089495b2f15dc1c956f3151f5a (patch)
tree606aacf5861d3897f102917cc3af1d6be3471f9f /src/openvic-simulation/misc/Define.cpp
parent068c13ede817d17df599ca3481261bf17ed95604 (diff)
Reworked ReturnByValue, warn_or_error, expect_date_[identifier_or_]string
Diffstat (limited to 'src/openvic-simulation/misc/Define.cpp')
-rw-r--r--src/openvic-simulation/misc/Define.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/openvic-simulation/misc/Define.cpp b/src/openvic-simulation/misc/Define.cpp
index e4e6b52..9ec5d49 100644
--- a/src/openvic-simulation/misc/Define.cpp
+++ b/src/openvic-simulation/misc/Define.cpp
@@ -95,9 +95,7 @@ bool DefineManager::load_defines_file(ast::NodeCPtr root) {
} else if (key == "start_date" || key == "end_date") {
- return expect_identifier_or_string(expect_date_str(
- std::bind_front(&DefineManager::add_date_define, this, key)
- ))(value);
+ return expect_date_identifier_or_string(std::bind_front(&DefineManager::add_date_define, this, key))(value);
} else {
return false;