runtime: c.Uint

This commit is contained in:
xushiwei
2024-05-07 00:15:06 +08:00
parent 028c6cdf50
commit 4eb7e4000b
3 changed files with 52 additions and 0 deletions

2
c/c.go
View File

@@ -16,6 +16,7 @@
package c
// typedef unsigned int uint;
import "C"
import "unsafe"
@@ -26,6 +27,7 @@ const (
type (
Char = int8
Int = C.int
Uint = C.uint
Pointer = unsafe.Pointer
FilePtr = unsafe.Pointer
)