github.com/kitech/dl@v0.0.0-20201225001532-be4f4faa4070/asmcgocall/examples/empty.go (about)

     1  package main
     2  
     3  /*
     4  
     5  int empty() {
     6  	// error code
     7  	return 0;
     8  }
     9  
    10  void regular_empty() {}
    11  
    12  */
    13  import "C"
    14  
    15  import "github.com/kitech/dl/asmcgocall"
    16  
    17  var emptyAsmcgocall = func() { asmcgocall.Asmcc(C.empty, nil) }
    18  
    19  func emptyCgocall() {
    20  	C.regular_empty()
    21  }