Add assert to improve backtraces on NULL function pointer

main
Christian Göttsche 5 years ago
parent ba5ef1ac8b
commit 796bc36fe0
  1. 1
      Header.c

@ -183,6 +183,7 @@ void Header_draw(const Header* this) {
else
actualWidth = width;
assert(meter->draw);
meter->draw(meter, x, y, actualWidth);
y += meter->h;
}

Loading…
Cancel
Save