File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 94
94
95
95
/** MBED_WEAK
96
96
* Mark a function as being weak.
97
+ *
98
+ * @note
99
+ * Functions should only be marked as weak in the source file. The header file
100
+ * should contain a regular function declaration to insure the function is emitted.
101
+ * A function marked weak will not be emitted if an alternative non-weak
102
+ * implementation is defined.
97
103
*
98
104
* @note
99
- * weak functions are not friendly to making code re-usable, as they can only
105
+ * Weak functions are not friendly to making code re-usable, as they can only
100
106
* be overridden once (and if they are multiply overridden the linker will emit
101
107
* no warning). You should not normally use weak symbols as part of the API to
102
108
* re-usable modules.
You can’t perform that action at this time.
0 commit comments