Skip to content

THIS IS NOT AN ISSUE!!! #159

@huxulm

Description

@huxulm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions