Codewarrior For Coldfire __FILE__ and __LINE__ Symbols.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Codewarrior For Coldfire __FILE__ and __LINE__ Symbols.

1,511 Views
Andypumphrey
Contributor I
I am using Codewarrior for Coldfire version 6.0.  I am compiling for the MCF5207.  I am wondering if the compiler supports the __FILE__ and __LINE__ symbols.  I tried it in my code, and it compiles OK, but something seems wrong.  I get weird pointers returned where I am using these.
 
  I appreciate any help.
Labels (1)
0 Kudos
2 Replies

374 Views
Andypumphrey
Contributor I
Thank you for the help.  I got it working.  We had special printf functions written for the 68332 which I ported to Coldfire.  It turns out I needed some additional tweaking for the variable argument list.  It works great now.  Thanks again.
0 Kudos

374 Views
CompilerGuru
NXP Employee
NXP Employee
Yes, the compiler for ColdFire in CW does support those ANSI C defined macros.
In fact, I did not notice any C compiler which would not support them.
So I'm wondering how you tried to use them, and does a simple string literal like "test" work in places where __FILE__ fails for you? For me the description sounds like there is something else not working in your setup, so I think we need more information about how you use them.

Daniel
0 Kudos