BetterC + Windows + setjmp longjmp

SrMordred patric.dexheimer at gmail.com
Wed Sep 19 13:08:36 UTC 2018


On Wednesday, 19 September 2018 at 11:12:41 UTC, Diederik de 
Groot wrote:
> On Wednesday, 19 September 2018 at 11:06:23 UTC, Diederik de 
> Groot wrote:
>> On Tuesday, 18 September 2018 at 19:45:18 UTC, SrMordred wrote:
>
>> Only the exact size of the jmp_buf is important (not the 
>> details about the content). We only call a function with it, 
>> we never look inside.
>
> I don't own any windows machines so had to use these references 
> (and could not test anything):
> - WinSDK10: goo.gl/m9DjZt
> - MARS: goo.gl/Qoc6g2
> Code above does not yet cover the Mars case, but the i386 sizes 
> should be the same.
> Please Note: setjmp/longjmp should only be used in "@system + 
> @nogc + nothrow / -betterC" code.

g++ and clang give me sizeof = 256. dmc give me 64. I tried all 
this sizes and other, but still crashes.


More information about the Digitalmars-d-learn mailing list