#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

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to