github.com/laevusdexter/asmcgocall@v0.0.0-20200220061330-f484a47e9b97/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/LaevusDexter/asmcgocall" 16 17 var emptyAsmcgocall = func() (result func()) { 18 asmcgocall.Register(C.empty, &result) 19 20 return 21 }() 22 23 func emptyCgocall() { 24 C.regular_empty() 25 }