move out c/cpp/py

This commit is contained in:
Li Jie
2025-04-03 15:52:18 +08:00
parent 0a8a4eb6a6
commit ed366568b4
777 changed files with 4608 additions and 139122 deletions

17
cl/_testlibc/setjmp/in.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
"github.com/goplus/lib/c"
)
func main() {
jb := c.AllocaSigjmpBuf()
switch ret := c.Sigsetjmp(jb, 0); ret {
case 0:
cstr := c.Str("??Hello, setjmp!\n")
c.Fprintf(c.Stderr, c.Str("%s"), c.Advance(c.Pointer(c.Advance(cstr, 1)), 1))
c.Siglongjmp(jb, 1)
default:
println("exception:", ret)
}
}