Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

THIS IS NOT AN ISSUE!!! #159

Open
huxulm opened this issue Jan 27, 2024 · 0 comments
Open

THIS IS NOT AN ISSUE!!! #159

huxulm opened this issue Jan 27, 2024 · 0 comments

Comments

@huxulm
Copy link

huxulm commented Jan 27, 2024

Hello,thanks for providing this great tools!
Can you provide any suggestion my problem?

Description:

In my header file:

int mylibFunc_2(int x[2][3]);

converted go code:

func MylibFunc2(X [][3]int32) int32 {
        // (*[3]_Ctype_int, *cgoAllocMap)
	cX, cXAllocMap := copyPIntArr3Bytes((*sliceHeader)(unsafe.Pointer(&X)))
	__ret := C.mylibFunc_2(cX)
	runtime.KeepAlive(cXAllocMap)
	__v := (int32)(__ret)
	return __v
}

copyPIntArr3Bytes is provide by my self because I didn't known how to config yaml to auto support this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant