]> git.meshlink.io Git - meshlink/commitdiff
Add assert() calls to the library.
authorGuus Sliepen <guus@meshlink.io>
Sat, 5 Oct 2019 12:15:35 +0000 (14:15 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sat, 5 Oct 2019 12:15:35 +0000 (14:15 +0200)
To aid in debugging, start using assert() to ensure preconditions hold.
At the moment, we assume that NULL-pointer dereferences will always cause
segfaults, so we don't add assert(ptr) statements in those cases, but that
might change in the future.


No differences found