vkFuncDecl, vkFuncPtr, vkClosure; callback example

This commit is contained in:
xushiwei
2024-05-05 15:59:33 +08:00
parent 03a194a514
commit 067cf0cba6
11 changed files with 136 additions and 38 deletions

View File

@@ -56,7 +56,7 @@ func (p Program) FuncDecl(sig *types.Signature, bg Background) Type {
if bg == InGo {
sig = p.gocvt.cvtFunc(sig, true)
}
return &aType{p.toLLVMFunc(sig), rawType{sig}, vkFunc}
return &aType{p.toLLVMFunc(sig), rawType{sig}, vkFuncDecl}
}
func (p goTypes) cvtType(typ types.Type) (raw types.Type, cvt bool) {