BetterC + Windows + setjmp longjmp
SrMordred
patric.dexheimer at gmail.com
Thu Sep 20 12:11:55 UTC 2018
Ok, after a better look at the sources I finally got it:
setjmp is a macro.
the true function signature is "int _setjmp(jmp_buf, void*)"
the void* is the current function address which in mingw sources
are capture by "__builtin_frame_address(0)".
And I did´t look yet to see if Dlang have an equivalent.
but calling _setjmp(jmp_buf, null); the simple examples are
working :)
More information about the Digitalmars-d-learn
mailing list