setjmp support for windows.

Paul Backus snarwin at gmail.com
Mon Mar 10 14:34:13 UTC 2025


On Monday, 10 March 2025 at 13:58:08 UTC, zz wrote:
> On Tuesday, 4 March 2025 at 11:25:14 UTC, Paul Backus wrote:
>> On Monday, 24 February 2025 at 12:53:30 UTC, zz wrote:
>>> Hi,
>>>
>>> Is setjmp/longjmp supported under windows?
>>>
>>> Regards,
>>> zz
>>
>> It's a standard C function, and Microsoft's online library 
>> documentation says that it's supported, so it should work.
>>
>> In D, bindings for standard C headers are available in the 
>> `core.stdc` package, so you can access `<setjmp.h>` with 
>> `import core.stdc.setjmp;`.
>
> Hi Paul,
>
> core.stdc.setjmp; doesn't exist.

Strange. Looks like it's (incorrectly?) included with the 
POSIX-specific headers, under `core.sys.posix.setjmp`.


More information about the Digitalmars-d-learn mailing list