> #def inline int signof(int x) {return x<0?-1:x>0?1:0;}
> foreign import ccall safe ""
> signof :: CInt -> CInt
Is it possible to get that #def as a result of
a macro? Say, something like this:
---
(WARNING: invalid code)
#define ret(name,value,type) \
#def inline type name (void) {return value;}
---
Thanks,
Maurício