aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigData.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ConfigData.hxx')
-rw-r--r--src/ConfigData.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx
index 5e13d073c..d6b024b9b 100644
--- a/src/ConfigData.hxx
+++ b/src/ConfigData.hxx
@@ -80,6 +80,15 @@ struct config_param {
config_param &operator=(const config_param &) = delete;
+ /**
+ * Determine if this is a "null" instance, i.e. an empty
+ * object that was synthesized and not loaded from a
+ * configuration file.
+ */
+ bool IsNull() const {
+ return line == unsigned(-1);
+ }
+
gcc_nonnull_all
void AddBlockParam(const char *_name, const char *_value,
int _line=-1) {