mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-08-28 18:15:42 +00:00
c019e11cc0
There are several points in swupd that we find conditions that should never happen, but we try to correct them anyway to be more reliable. Because of that we may hide programming mistakes that are corrected later. So, to make sure we are going to catch those problems in debug mode in our development machines and test environment, I am suggesting a UNEXPECTED() macro that aborts swupd if --enable-debug was used to build swupd. I am adding some examples on what we could do with that. Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>