*/
#define FR_DICT_ATTR_SIZE (sizeof(fr_dict_attr_t) + FR_DICT_ATTR_MAX_NAME_LEN)
-#ifdef WITH_VERIFY_PTR
-# define VERIFY_DA(_x) fr_dict_verify(__FILE__, __LINE__, _x)
-#else
-# define VERIFY_DA(_x) fr_cond_assert(_x)
-#endif
-
/** Characters that are allowed in dictionary attribute names
*
*/
}
dict_attr_init(n, parent, attr, type, flags);
- VERIFY_DA(n);
+ DA_VERIFY(n);
return n;
}
if (!n) return NULL;
dict_attr_init(n, in->parent, in->attr, in->type, &in->flags);
- VERIFY_DA(n);
+ DA_VERIFY(n);
return n;
}
child->parent = parent;
child->depth = parent->depth + 1;
- VERIFY_DA(child);
+ DA_VERIFY(child);
/*
* We only allocate the pointer array *if* the parent has children.
{
fr_dict_attr_t const *da_p = da;
- VERIFY_DA(da);
+ DA_VERIFY(da);
while (da_p->parent) {
if (da_p->type == FR_TYPE_VENDOR) break;
{
fr_dict_attr_t const *bin;
- VERIFY_DA(parent);
+ DA_VERIFY(parent);
if (!parent->children) return NULL;
{
fr_dict_attr_t const *bin;
- VERIFY_DA(parent);
+ DA_VERIFY(parent);
if (!parent->children) return NULL;
if (!dict->root) return -1;
dict_attr_init(dict->root, NULL, proto_number, FR_TYPE_TLV, &flags);
- VERIFY_DA(dict->root);
+ DA_VERIFY(dict->root);
return 0;
}