Behalf Of Curt Hagenlocher
Sent: Monday, December 15, 2008 6:27 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Preprocessor directives in IronPython 2.0
Nope. Why do you think you want them? Or rather, what's wrong with this:
debug = False
def Main():
if debug:
prin
Nope. Why do you think you want them? Or rather, what's wrong with this:
debug = False
def Main():
if debug:
print 'DEBUG is set'
else:
print 'DEBUG is not set'
On Mon, Dec 15, 2008 at 5:46 AM, Yash Ganthe wrote:
> In C# we can code for conditional compilation such as
In C# we can code for conditional compilation such as:
public static void Main()
{
#if DEBUG
Console.WriteLine("DEBUG is defined");
#else
Console.WriteLine("DEBUG is not defined");
#endif
}
Is it possible to do the same in IronPython? Does it support preprocessor
directives?
Thanks,
Yash