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

"ocaml_beginners"::[] Conditional compilation

by cultural_sublimation :: Rate this Message:

Reply to Author | View in Thread

Fellow Camels,

How does one handle conditional compilation in OCaml?  I want certain
pieces of debugging code to be included only if a certain environment
variable is set.  This sort of thing is really easy to do in the C
preprocessor with #ifdefs.

And yes, I know I can use cpp also with OCaml, but I was wondering
if there was a more "bactrian" way of doing this.

Thanks,
C.S.


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