Closed vivi365 closed 5 months ago
All C function calls from Go are done via the C package C.someCFunction(). Thus it seems we can just look for the C identity.
C.someCFunction()
if pkg, ok := sel.X.(*ast.Ident); ok && pkg.Name == "C"
Have not tested thoroughly yet, only on the POC.
All C function calls from Go are done via the C package
C.someCFunction()
. Thus it seems we can just look for the C identity.Have not tested thoroughly yet, only on the POC.