
5 Oct
2009
5 Oct
'09
3:36 a.m.
Hello Rafal, Monday, October 5, 2009, 9:18:30 AM, you wrote:
Is there a neat way to have c2hs generate the FunPtr version for me?
from my program: -- |My callback function type type CALLBACK_FUNC = Ptr CChar -> IO CInt foreign import ccall threadsafe "wrapper" mkCALL_BACK :: CALLBACK_FUNC -> IO (FunPtr CALLBACK_FUNC) key word here is "wrapper" in foreign import statement. read FFI specs for that -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com