forked from external/yambar
particle/progress-bar: assert sub particles where instantiated correctly
This commit is contained in:
parent
86ef9dcc02
commit
c3cfae13e8
1 changed files with 2 additions and 0 deletions
|
@ -210,6 +210,8 @@ instantiate(const struct particle *particle, const struct tag_set *tags)
|
||||||
epriv->exposables[idx++] = p->end_marker->instantiate(p->end_marker, tags);
|
epriv->exposables[idx++] = p->end_marker->instantiate(p->end_marker, tags);
|
||||||
|
|
||||||
assert(idx == epriv->count);
|
assert(idx == epriv->count);
|
||||||
|
for (size_t i = 0; i < epriv->count; i++)
|
||||||
|
assert(epriv->exposables[i] != NULL);
|
||||||
|
|
||||||
char *on_click = tags_expand_template(particle->on_click_template, tags);
|
char *on_click = tags_expand_template(particle->on_click_template, tags);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue