Can not call function pointers to C functions #6194

Closed
sstewartgallus opened this Issue May 2, 2013 · 2 comments

Comments

Projects
None yet
3 participants
Contributor

sstewartgallus commented May 2, 2013

The FFI for C has been around for a while now so I was unhappy to find out that calling pointers to C functions is not implemented yet. Because of this issue in the test case for the code here: http://gitorious.org/rust-dlfcn/rust-dlfcn/blobs/master/dlfcn.rs . I must use incorrect code, and use extern fn, instead of extern "C" fn for the type of the cosine function pointer. I understand that this is okay for C functions which do not use up that much stack space but in general one would want to use the extern "C" fn type.

Contributor

catamorphism commented Jul 17, 2013

Related to #3678

Contributor

thestinger commented Sep 7, 2013

This is now implemented.

thestinger closed this Sep 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment