summaryrefslogtreecommitdiff
path: root/src/expand
diff options
context:
space:
mode:
Diffstat (limited to 'src/expand')
-rw-r--r--src/expand/cfg.cpp2
-rw-r--r--src/expand/cfg.hpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/expand/cfg.cpp b/src/expand/cfg.cpp
index 76f6bbc3..1372d982 100644
--- a/src/expand/cfg.cpp
+++ b/src/expand/cfg.cpp
@@ -18,7 +18,7 @@ void Cfg_SetFlag(::std::string name) {
void Cfg_SetValue(::std::string name, ::std::string val) {
g_cfg_values.insert( ::std::make_pair(mv$(name), mv$(val)) );
}
-void Cfg_SetValue(::std::string name, ::std::function<bool(const ::std::string&)> cb) {
+void Cfg_SetValueCb(::std::string name, ::std::function<bool(const ::std::string&)> cb) {
g_cfg_value_fcns.insert( ::std::make_pair(mv$(name), mv$(cb)) );
}
diff --git a/src/expand/cfg.hpp b/src/expand/cfg.hpp
index ae5e1054..8e5fce42 100644
--- a/src/expand/cfg.hpp
+++ b/src/expand/cfg.hpp
@@ -3,4 +3,5 @@
extern void Cfg_SetFlag(::std::string name);
extern void Cfg_SetValue(::std::string name, ::std::string val);
+extern void Cfg_SetValueCb(::std::string name, ::std::function<bool(const ::std::string&)> cb);
extern bool check_cfg(Span sp, const ::AST::MetaItem& mi);