| View previous topic :: View next topic |
| Author |
Message |
Mar Guest
|
Posted: Fri Jun 04, 2004 2:18 pm Post subject: 'User' Compiler output |
|
|
Imagine I have this
#if defined(_VIS_STD)
# include <iostream>
#else
# include <iostream.h>
#endif
Can I add something in the code that would tell me: "you are now including
this file and not the other one"?
Like:
#if defined(_VIS_STD)
# include <iostream>
<CL output: You have included iostream>
#else
# include <iostream.h>
<CL output: You have included iostream.h>
#endif
Any other way how I can check this?
|
|
| Back to top |
|
 |
Fredrik Eriksson Guest
|
Posted: Fri Jun 04, 2004 3:20 pm Post subject: Re: 'User' Compiler output |
|
|
On Fri, 4 Jun 2004 16:18:47 +0200, Mar
<NameYearOfBirthHeightWeight (AT) hotmail (DOT) com> wrote:
| Quote: | Imagine I have this
#if defined(_VIS_STD)
# include <iostream
#else
# include
#endif
Can I add something in the code that would tell me: "you are now
including
this file and not the other one"?
Like:
#if defined(_VIS_STD)
# include
CL output: You have included iostream
#else
# include
CL output: You have included iostream.h
#endif
Any other way how I can check this?
|
#if defined(_VIS_STD)
# include
#pragma message You have included iostream
#else
# include <iostream.h>
#pragma message You have included iostream.h
#endif
If you want compatibility with MS compilers, use the form
#pragma message( "You have included iostream" )
instead.
--
FE
|
|
| Back to top |
|
 |
Mar Guest
|
Posted: Fri Jun 04, 2004 3:23 pm Post subject: Re: 'User' Compiler output |
|
|
"Fredrik Eriksson" <noone (AT) nowhere (DOT) com> wrote
| Quote: | #if defined(_VIS_STD)
# include
#pragma message You have included iostream
#else
# include
#pragma message You have included iostream.h
#endif
If you want compatibility with MS compilers, use the form
#pragma message( "You have included iostream" )
instead.
|
Hey, that cool man!
Thanks!
|
|
| Back to top |
|
 |
|