This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

__FILE__ macro

Note: This was originally posted on 8th May 2013 at http://forums.arm.com

When using the __FILE__ macro in RVDS4, it only expands to "source/file.cpp". It won't ever expand to more than just the directory the file is in.
It seems everyone has problems shortening the path from __FILE__ rather than getting it to show more.

Is there anyway to resolve this?

Loggie
Parents
  • Note: This was originally posted on 10th May 2013 at http://forums.arm.com

    [size=2]Thanks Scott, however [/size]I have been speaking with a colleague and we have come to the conclusion that since each filename is unique, we can solve the problem with the following. By specifying the root path of the entire solution we can search the project folders and build a hash table with filename key's that correspond to the full path to the file.. This would allow us to obtain the functionality we desire without requiring any changes to our actual code.
Reply
  • Note: This was originally posted on 10th May 2013 at http://forums.arm.com

    [size=2]Thanks Scott, however [/size]I have been speaking with a colleague and we have come to the conclusion that since each filename is unique, we can solve the problem with the following. By specifying the root path of the entire solution we can search the project folders and build a hash table with filename key's that correspond to the full path to the file.. This would allow us to obtain the functionality we desire without requiring any changes to our actual code.
Children
No data