Procházet zdrojové kódy

Use of _setjmp is preferred on darwin.

woollybah před 6 roky
rodič
revize
06ba33228d
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      ctranslator.bmx

+ 4 - 0
ctranslator.bmx

@@ -2428,7 +2428,11 @@ t:+"NULLNULLNULL"
 			End If
 			End If
 		End If
 		End If
 		Emit "jmp_buf* buf = bbExEnter();"
 		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)) {"
 		Emit "switch(setjmp(*buf)) {"
+		End If
 		
 		
 		' Try block:
 		' Try block:
 		Emit "case 0: {"
 		Emit "case 0: {"