github.com/moontrade/wavm-go@v0.3.2-0.20220316110326-d229dd66ad65/worker/cgo.go (about)

     1  //go:build cgo_safe && !libfuzzer
     2  // +build cgo_safe,!libfuzzer
     3  
     4  package worker
     5  
     6  // #include "worker.h"
     7  import "C"
     8  import "unsafe"
     9  
    10  func callStub() {
    11  	C.moontrade_stub()
    12  }
    13  
    14  func (w *Worker) doCall() {
    15  	C.moontrade_call((C.uintptr_t)(uintptr(unsafe.Pointer(&w.Args))), (C.uintptr_t)(0))
    16  }