github.com/wasilibs/nottinygc@v0.7.2-0.20240312114022-d59c9478ef51/init_proxywasm.go (about)

     1  // Copyright wasilibs authors
     2  // SPDX-License-Identifier: MIT
     3  
     4  //go:build tinygo && nottinygc_envoy
     5  
     6  package nottinygc
     7  
     8  /*
     9  #cgo LDFLAGS: -Lwasm -lgc -lmimalloc -lclang_rt.builtins-wasm32
    10  */
    11  import "C"
    12  
    13  //export sched_yield
    14  func sched_yield() int32 {
    15  	return 0
    16  }