Browse Source

Use of _setjmp is preferred on darwin.

woollybah 6 years ago
parent
commit
06ba33228d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ctranslator.bmx

+ 4 - 0
ctranslator.bmx

@@ -2428,7 +2428,11 @@ t:+"NULLNULLNULL"
 			End If
 		End If
 		Emit "jmp_buf* buf = bbExEnter();"
+		If opt_platform = "macos" Or opt_platform = "ios" Or opt_platform = "osx" Then
+			Emit "switch(_setjmp(*buf)) {"
+		Else
 		Emit "switch(setjmp(*buf)) {"
+		End If
 		
 		' Try block:
 		Emit "case 0: {"