Skip to content

Commit

Permalink
Provide a MSVC compatible setjmp in WIN64
Browse files Browse the repository at this point in the history
Note: this change should be in VMMaker source
  • Loading branch information
nicolas-cellier-aka-nice committed May 28, 2017
1 parent e9020ec commit 627c535
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spur64src/vm/cointerp.c
Expand Up @@ -69,7 +69,10 @@ invalidCompactClassError(char *s) { /* Print a (compact) class index error messa
*/
#undef sigsetjmp
#undef siglongjmp
#if _WIN64
#if _MSC_VER
# define sigsetjmp(jb,ssmf) _setjmp(jb)
# define siglongjmp(jb,v) longjmp(jb,v)
#elif _WIN64 && __GNUC__
# define sigsetjmp(jb,ssmf) _setjmp(jb,NULL)
# define siglongjmp(jb,v) longjmp(jb,v)
#elif _WIN32
Expand Down

0 comments on commit 627c535

Please sign in to comment.