[Mono-devel-list] Predefined symbols?

Jonathan Pryor jonpryor at vt.edu
Thu May 6 07:34:07 EDT 2004


On Wed, 2004-05-05 at 04:11, Michi Henning wrote:
> simple question: does the C# preprocessor define a Mono-specific
> symbol? I'm writing code that has to compile on both Visual C#
> and mcs and want to use conditional compilation.

Mcs defines the __MonoCS__ symbol.  Note that this only tells you the
compiler that's being used, not the runtime environment.

> In my particular case, I need to work around an mcs bug that prevents
> me from defining a class member, so reflection along the lines of

Which means __MonoCS__ is perfect for you.  But please file the bug at
buzilla.ximian.com if it isn't already reported.

 - Jon





More information about the Mono-devel-list mailing list