crashappsec / libcon4m

Base Compiler and Runtime Support for con4m
Apache License 2.0
0 stars 0 forks source link

Replace abort w/ hatrack_panic mechanism #30

Closed orangematt closed 2 months ago

orangematt commented 2 months ago

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!

viega commented 2 months ago

I thought I approved this one, sorry for missing it.