predefined preprocessor macros

  • Thread starter Thread starter cody
  • Start date Start date
C

cody

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 wrote:
||| No macros, but directives and you *can* in fact find a list at MSDN:
|||
|||
|| http://msdn.microsoft.com/library/default.asp?url=/library/en-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.
 
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,

Did you ever get a satisfactory answer to this? I'm looking for the same
information...


cody said:
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
 
Re: predefined symbols (was: predefined preprocessor macros)

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top