Codewarrior: am I compiling with debug on ?

Discussion in 'C++' started by Søren Grønbech, Jun 29, 2003.

  1. I'm using Codewarrior for Windows and for example
    I can check the peephole option to see if we are currently compiling
    with peephole optimization on...
    #if __option(peephole)

    Is there a way to see if we are compiling with debug turned on?

    thanx,
    Søren
    Søren Grønbech, Jun 29, 2003
    #1
    1. Advertising

  2. Søren Grønbech

    MiniDisc_2k2 Guest

    This is compiler-specific. I'd recommend codewarrior.windows. That and I
    have no idea what you're talking about.
    MiniDisc_2k2, Jun 30, 2003
    #2
    1. Advertising

  3. #if __ide_target("Debug Win32 x86")
    printf("YO!!!\n");
    #endif


    That worked ! (for Codewarrior Version 8 on Windows)

    thanx
    Søren




    "Russell Hanneken" <> wrote in message
    news:n0ILa.1223$...
    > "Søren Grønbech" <> wrote in message
    > news:3eff255b$0$24722$...
    > > I'm using Codewarrior for Windows and for example
    > > I can check the peephole option to see if we are currently compiling
    > > with peephole optimization on...
    > > #if __option(peephole)
    > >
    > > Is there a way to see if we are compiling with debug turned on?

    >
    > Ask this on codewarrior.windows. This newsgroup is for discussion of
    > standard C++ (see http://www.slack.net/~shiva/welcome.txt).
    >
    > Just a thought: select "Online Manuals" under "Help," and look up the
    > preprocessor macro "__ide_target()" in the index (I'm using CodeWarrior
    > version 7; the documentation might not be laid out the same way on your
    > system). That may or may not be what you're looking for.
    >
    > Regards,
    >
    > Russell Hanneken
    >
    >
    >
    >
    Søren Grønbech, Jun 30, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sean Bartholomew

    Codewarrior for MacOSX warning msgs

    Sean Bartholomew, Jul 12, 2004, in forum: C++
    Replies:
    4
    Views:
    454
    Robbie Hatley
    Jul 14, 2004
  2. Mike C. Fletcher
    Replies:
    3
    Views:
    966
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Oct 12, 2003
  3. Replies:
    0
    Views:
    447
  4. BillJosephson
    Replies:
    34
    Views:
    815
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=
    Feb 18, 2007
  5. BillJosephson
    Replies:
    32
    Views:
    829
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=
    Feb 18, 2007
Loading...

Share This Page