_demo: setjmp

This commit is contained in:
xushiwei
2024-06-08 13:10:59 +08:00
parent fcf3f2abc7
commit 6dfdca2d19
2 changed files with 0 additions and 75 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"github.com/goplus/llgo/c/setjmp"
"github.com/goplus/llgo/c/setjmp/trycatch"
)
func main() {
@@ -10,7 +9,6 @@ func main() {
switch ret := setjmp.Sigsetjmp(&jb, 0); ret {
case 0:
println("Hello, setjmp!")
trycatch.ThrowCppException()
setjmp.Siglongjmp(&jb, 1)
default:
println("exception:", ret)