« Return to Thread: "ocaml_beginners"::[] Conditional compilation

"ocaml_beginners"::[] Re: Conditional compilation

by cultural_sublimation :: Rate this Message:

Reply to Author | View in Thread

Camels,

Thank you everyone for your help.  Now I know it should at least be
possible to achieve what I want.  However, I've never used camlp4
(and I'm running Ocaml 3.10) so I'm afraid that some of your suggestions
just went over my head.  All I want is something as simple as this:

ifdef DEBUG
then Printf.printf "debug!\n"
else ()

Surely that camlp4 allows for this with just a few lines, no?

Thanks,
C.S.


 « Return to Thread: "ocaml_beginners"::[] Conditional compilation