Recommended way to conditionally compile modules?
Bas van Dijk
v.dijk.bas at gmail.com
Tue Jan 19 13:13:07 EST 2010
On Fri, Jan 15, 2010 at 11:36 PM, Bryan O'Sullivan <bos at serpentine.com> wrote:
> ...I have to export everything in the module (because its contents vary depending on where I compile it)...
You could of course conditionally export symbols using CPP:
module System.Event.EPoll
(
#if defined(HAVE_EPOLL)
...
#endif
) where
#if defined(HAVE_EPOLL)
...
#endif
Bas
More information about the Libraries
mailing list