瀏覽代碼

Use of _setjmp is preferred on darwin.

woollybah 6 年之前
父節點
當前提交
06ba33228d
共有 1 個文件被更改,包括 4 次插入0 次删除
  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: {"