Skip to content

Commit a7e48f9

Browse files
committed
mbed: version macros are not defined on master
Remove mbed OS and mbed 2 version macros. As master can break anytime (should not break but can happen and shall be expected that there are changes that might affect the bleeding edge developers), there is no remedy for protecting the sw via macros (either using some special versions, etc). If it is not defined, means it is developed version of mbed OS/mbed 2 and it is up to a user to track changes. Any release of mbed OS 5 and mbed 2 contains these version macros. Thus won't break anything.
1 parent 3122abe commit a7e48f9

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

mbed.h

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,6 @@
1616
#ifndef MBED_H
1717
#define MBED_H
1818

19-
20-
/* mbed minor and patch versions for both mbed 2 and mbed OS 5 are 0 on master branch. They are set
21-
to meaningful values for releases and release branches.
22-
*/
23-
#define MBED_LIBRARY_VERSION 0
24-
25-
#if MBED_CONF_RTOS_PRESENT
26-
// RTOS present, this is valid only for mbed OS 5
27-
#define MBED_MAJOR_VERSION 5
28-
#define MBED_MINOR_VERSION 0
29-
#define MBED_PATCH_VERSION 0
30-
31-
#else
32-
// mbed 2
33-
#define MBED_MAJOR_VERSION 2
34-
#define MBED_MINOR_VERSION 0
35-
#define MBED_PATCH_VERSION MBED_LIBRARY_VERSION
36-
#endif
37-
38-
#define MBED_ENCODE_VERSION(major, minor, patch) ((major)*10000 + (minor)*100 + (patch))
39-
40-
#define MBED_VERSION MBED_ENCODE_VERSION(MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION)
41-
4219
#if MBED_CONF_RTOS_PRESENT
4320
#include "rtos/rtos.h"
4421
#endif

0 commit comments

Comments
 (0)