Skip to content

Commit 0d05cad

Browse files
committed
windows: Test nlr at build time.
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
1 parent 3cf52e2 commit 0d05cad

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

ports/windows/windows_mphal.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@
2929
#include "py/mphal.h"
3030
#include "py/mpthread.h"
3131

32+
33+
#ifdef _MSC_VER
34+
#include "py/nlr.h"
35+
#if MICROPY_NLR_X86
36+
#error "MICROPY_NLR_X86"
37+
#endif
38+
39+
#if MICROPY_NLR_SETJMP
40+
#error "MICROPY_NLR_SETJMP"
41+
#endif
42+
#else
43+
#error "!MSC_VER"
44+
#endif
45+
3246
#include <sys/time.h>
3347
#include <windows.h>
3448
#include <unistd.h>

0 commit comments

Comments
 (0)