Add hatrack_panic and use it in place of abort. Also include a means for users of Hatrack to replace the default panic implementation with one of their own.
There are a lot of hits here because of mutex lock/unlock checks that abort. I've replaced these with macros. I went through the diffs after to make sure I didn't screw up any locks/unlocks (I totally did). I fixed the screw ups that I noticed and went through the diffs a second time. Please double check them!
Add
hatrack_panic
and use it in place ofabort
. Also include a means for users of Hatrack to replace the default panic implementation with one of their own.There are a lot of hits here because of mutex lock/unlock checks that abort. I've replaced these with macros. I went through the diffs after to make sure I didn't screw up any locks/unlocks (I totally did). I fixed the screw ups that I noticed and went through the diffs a second time. Please double check them!