Where can I learn about #ifdef?

后端 未结 4 732
旧时难觅i
旧时难觅i 2020-12-29 03:21

I see this used often to make modules compatible with GHC and Hugs, but google is not helping me learn more about it.

What can I put inside the conditional? Can I m

4条回答
  •  太阳男子
    2020-12-29 03:51

    If you run your Haskell compiler with the -cpp option, it will first preprocess the source files with the CPP (C Pre Processor).

    Take a look at the section 4.11.3. Options affecting the C pre-processor here.

提交回复
热议问题