reflect.call: internal/abi: TFlagClosure, internal/lib/reflect: flagClosure.

This commit is contained in:
visualfc
2024-10-29 19:59:32 +08:00
parent 88c0e149b5
commit 6b0122547e
9 changed files with 442 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
package ffi
import (
"fmt"
"unsafe"
"github.com/goplus/llgo/c"
@@ -25,7 +24,7 @@ func (s Error) Error() string {
case ffi.BAD_ARGTYPE:
return "bad argument type"
}
return fmt.Sprintf("invalid status: %v", int(s))
return "invalid status"
}
func NewSignature(ret *Type, args ...*Type) (*Signature, error) {