By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,673 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,673 IT Pros & Developers. It's quick & easy.

predefined preprocessor macros

P: n/a
where can i find a list of all predefined preprocessor macros in c#? i
searched in the msdn but i can't find it.

i now there is at lest one: DEBUG. but what else?

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Nov 13 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Cody,

No macros, but directives and you *can* in fact find a list at MSDN:

http://msdn.microsoft.com/library/de...Directives.asp

Alex
"cody" <de********@gmx.net> wrote in message
news:OY**************@TK2MSFTNGP12.phx.gbl...
where can i find a list of all predefined preprocessor macros in c#? i
searched in the msdn but i can't find it.

i now there is at lest one: DEBUG. but what else?

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Nov 13 '05 #2

P: n/a
cody wrote:
||| No macros, but directives and you *can* in fact find a list at MSDN:
|||
|||
|| http://msdn.microsoft.com/library/de...us/csref/html/
|| vclrfPreprocessorDirectives.asp
||
||
|| iam not looking for a list of directives, iam looking for predefined
|| preprocessor macros like DEBUG.
||
|| --
|| cody
||
|| [Freeware, Games and Humor]
|| www.deutronium.de.vu || www.deutronium.tk

DEBUG is not a macro it's a symbol, these are defined by the /define compiler option.

Willy.
Nov 13 '05 #3

P: n/a
There are no macros in C#.

"cody" <de********@gmx.net> wrote in message
news:uC*************@TK2MSFTNGP10.phx.gbl...
No macros, but directives and you *can* in fact find a list at MSDN:

http://msdn.microsoft.com/library/de...us/csref/html/ vclrfPreprocessorDirectives.asp
iam not looking for a list of directives, iam looking for predefined
preprocessor macros like DEBUG.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Nov 13 '05 #4

P: n/a
> DEBUG is not a macro it's a symbol, these are defined by the /define
compiler option.

ok it is a symbol and not a macro. but where can i find a list of defined
symbols then?
such as __LINE__, __TIME__, _WINVER, MFC60 or whatever.
--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Nov 13 '05 #5

P: n/a
cody,

Did you ever get a satisfactory answer to this? I'm looking for the same
information...
"cody" <de********@gmx.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
DEBUG is not a macro it's a symbol, these are defined by the /define

compiler option.

ok it is a symbol and not a macro. but where can i find a list of defined
symbols then?
such as __LINE__, __TIME__, _WINVER, MFC60 or whatever.
--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Nov 15 '05 #6

P: n/a

I've been wanting to know this for a while too. I've been putting thing
like /d:CompactFramework, /d:CommandLineBuild, /d:Net20, /d:Mono, etc i
my build scripts and using directives so that my build can build fo
Compact Framework, NET 2.0, do different things if not built in th
IDE, get around incompatibilities between csc and mcs, etc. I woul
have thought that all this kind of info should be available to m
automatically, but I haven't found how.
Ne

--
nevdelapPosted from http://www.pcreview.co.uk/ newsgroup acces

Nov 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.