Can CM detect MLton vs. SML/NJ?

Anoq of the Sun anoq@HardcoreProcessing.com
Tue, 16 Oct 2001 13:19:46 +0200


Hello!


Do you know if CM can detect whether I'm compiling with
MLton or with SML/NJ? I tried the following in the .cm
files without any luck:

#if defined(structure MLton)
(* Assume MLton *)
#else
(* Assume SML/NJ *)
#endif

and:

#if SMLNJ_VERSION >= 110
(* Assume SML/NJ *)
#else
(* Assume MLton *)
#endif

It seems that structure MLton is not defined when
running cmcat but that SMLNJ_VERSION is defined...
So in the above code it always assumes SML/NJ...


Cheers
-- 
http://www.HardcoreProcessing.com