CodeWarrior 6.1 Go to macro declaration error

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

CodeWarrior 6.1 Go to macro declaration error

2,145 Views
RodBristol
Contributor I
When a macro is conditionally compiled and the file holding the declaration is not open, the right-click-and-Go-to-macro-declaration feature works correctly. If the file holding the macro is already open, the IDE chooses the last declaration in the file instead of the correct one. This is with the "Generate Browser Data From Compiler" option selected.
 
In my project, the compile switches are defined in a file set on a path unique to each target.
 
Here's an example:
/* active high relay control on port E */
#if(LocalRelayDrive == 1)
#define SetLocalRelayOn         PTED |= 1
#define SetLocalRelayOff        PTED &= ~0X01
#define GetLocalRelayStatus     (PTED & 1)
/* active low relay control on port E */
#elif(LocalRelayDrive == 0)
#define SetLocalRelayOff        PTED |= 1
#define SetLocalRelayOn         PTED &= ~0X01
#define GetLocalRelayStatus     (!(PTED & 1))
/* multiple relay control  on port B */
#elif(LocalRelayDrive == 3)
#define ShutdownRelayOff        PTBD |= (1<<2) // brown, shutdown
#define ShutdownRelayOn         PTBD &= ~(1<<2)
#define SetLocalRelayOff        PTBD &= ~(1<<1) // gray, short = setback
#define SetLocalRelayOn         PTBD |= (1<<1) // open = occupied
#endif
 
 
Thanks.
Rod Bristol
 
Labels (1)
0 Kudos
Reply
2 Replies

365 Views
CrasyCat
Specialist III
Hello
 
I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.
 
CrasyCat
0 Kudos
Reply

365 Views
RodBristol
Contributor I
Packed and sent. Thanks.
Rod Bristol
0 Kudos
Reply