Binding to inline functions

John Meacham john at repetae.net
Tue Sep 1 04:57:50 EDT 2009


Can't hsc2hs already do this?

#def char w_some_inline_function(char foo) { return some_inline_function(foo); }
foreign import ccall "w_some_inline_function" some_inline_function :: CChar -> CChar

I have certainly used this idiom on several occasions to work around the
issue.

        John


-- 
John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/


More information about the Libraries mailing list