Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/cgo: allow calling C function pointers #3364
What steps will reproduce the problem? Brought over from issue #2313. I was trying to find a workaround for the inlined functions issue with gccgo: http://stackoverflow.com/questions/1474030/how-can-i-tell-gcc-not-to-inline-a-function I tried this the function pointer suggestion, but I got: call of non-function C.foo_ptr Might be nice if that could work. I think it will help when wrapping the JVM API too. Please provide any additional information below. small example attached. I think it's right.