Allow third party sigsegv handler

For example from sanitizers.
This commit is contained in:
Christian Göttsche
2020-09-10 00:17:59 +02:00
committed by cgzones
parent 00665e2a2b
commit 5d4061732f
3 changed files with 13 additions and 2 deletions

1
CRT.h
View File

@ -108,6 +108,7 @@ typedef enum ColorElements_ {
void CRT_fatalError(const char* note) __attribute__ ((noreturn));
extern struct sigaction old_sigsegv_handler;
void CRT_handleSIGSEGV(int sgn);
#define KEY_ALT(x) (KEY_F(64 - 26) + (x - 'A'))