Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 5 months ago.
VERSION, or __VERSION__ macro available?
Soon after the version control capability was announced, there was a request for a VERSION macro. Has this been implemented?
Question relating to:
1 Answer
10 years, 5 months ago.
Hello David Smart,
that macro is not yet there, if you mean mbed library revision (= version). I'll bring this up to the team. Thanks.
Regards,
0xc0170
Hi Martin, thanks for the fast response. Actually, I was hoping for the version number reported by the version control system, so every commit can be uniquely identified in the binary. There is a small flaw in this logic - you would first have to commit the new version, and then build from that version. And, in the context of the build with several components, which is it drawing the version number from?
I use DATE and TIME in pretty much everything today, but it would be handy if a program (or library module) were somewhat self-reporting.
posted by 14 Jun 2014