You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: