mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
wip: verify configuration
We now verify the configuration (currently down to module level, but not including particles) that are present are of the expected type.
This commit is contained in:
parent
45e5f11fea
commit
aa38063e37
7 changed files with 856 additions and 27 deletions
3
yml.h
3
yml.h
|
@ -32,6 +32,9 @@ struct yml_dict_iter yml_dict_iter(const struct yml_node *dict);
|
|||
void yml_dict_next(struct yml_dict_iter *iter);
|
||||
size_t yml_dict_length(const struct yml_node *dict);
|
||||
|
||||
bool yml_value_is_int(const struct yml_node *value);
|
||||
bool yml_value_is_bool(const struct yml_node *value);
|
||||
|
||||
const char *yml_value_as_string(const struct yml_node *value);
|
||||
long yml_value_as_int(const struct yml_node *value);
|
||||
bool yml_value_as_bool(const struct yml_node *value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue