How to use CROSSWORKS VERSION NUMBER in source code (C/C++)? #if #else
Hello,
I am migrating from Rowley CrossWorks v2.3.5 to v.4.2. As you could imagine, there has been a number of changes in the support packages (e.g. the way we use STLport). In order for me to get through by making minimum changes to my project/source code, I was looking for a way to use CROSSWORKS VERSION NUMBER in source code (C/C++).
e.g.
#if CROSSWORKS_MAJOR_VERSION < 4.2
// call a function supported in v2.3.5
#else
// call the same function supported in v4.2 or greater.
#endif
Any lead on this would be helpful? Thanks.
Please sign in to leave a comment.
Comments
2 comments