BetterC + Windows + setjmp longjmp

SrMordred patric.dexheimer at gmail.com
Tue Sep 18 00:24:23 UTC 2018


On Tuesday, 18 September 2018 at 00:12:35 UTC, Diederik de Groot 
wrote:
> On Monday, 17 September 2018 at 23:44:41 UTC, SrMordred wrote:
>> [...]
>
> You can use core.stdc.signal
> nothrow @nogc @system sigfn_t signal(SIGSEGV, sigfn_t func)
> To catch the signal
> With a handler signature of:
> enum void function(int) nothrow @nogc @system SIG_ERR;
>
> [...]

Yes, i'm using signal(SIGSEGV, sigfn_t func), it catches 
correctly, but end the execution after.

I find the alternatives of setjmp/longjmp and sigaction, but none 
are avaliable on windows afaik.


More information about the Digitalmars-d-learn mailing list