Add "true" and "false" to constants

This commit is contained in:
Vftdan 2024-08-18 18:52:08 +02:00
parent 58dc2cc84a
commit 1c9cdf80a0
1 changed files with 2 additions and 0 deletions

View File

@ -392,6 +392,8 @@ load_config(const config_setting_t *config_root, FullConfig *config)
const config_setting_t *enums_config = config_setting_get_member(config_root, "enums");
const config_setting_t *predicates_config = config_setting_get_member(config_root, "predicates");
hash_table_init(&config->constants, NULL);
hash_table_insert(&config->constants, hash_table_key_from_cstr("false"), (long long[1]) {0});
hash_table_insert(&config->constants, hash_table_key_from_cstr("true"), (long long[1]) {1});
populate_event_codes(&config->constants);
load_constants_section(constants_config, &config->constants);
load_enums_section(enums_config, &config->constants);