cgo: implement void* pointer type

void* is translated to unsafe.Pointer on the Go side.
This commit is contained in:
Ayke van Laethem
2019-04-20 15:48:45 +02:00
committed by Ron Evans
parent 9c46ac4eed
commit b815d3f760
5 changed files with 22 additions and 1 deletions
+2
View File
@@ -9,6 +9,8 @@ _Complex float globalComplexFloat = 4.1+3.3i;
_Complex double globalComplexDouble = 4.2+3.4i;
_Complex double globalComplexLongDouble = 4.3+3.5i;
char globalChar = 100;
void *globalVoidPtrSet = &global;
void *globalVoidPtrNull;
collection_t globalStruct = {256, -123456, 3.14, 88};
int globalStructSize = sizeof(globalStruct);
short globalArray[3] = {5, 6, 7};