mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #13015 from jeromecoutant/PR_IARTRIVIAL
Force callback non-trivial for IARpull/13077/head
commit
dc30e1bf60
|
@ -30,6 +30,13 @@
|
|||
// MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL - support storing non-trivial function objects
|
||||
// MBED_CONF_PLATFORM_CALLBACK_COMPARABLE - support memcmp comparing stored objects (requires zero padding)
|
||||
|
||||
#ifdef __ICCARM__
|
||||
/* Force platform.callback-nontrivial for IAR */
|
||||
#undef MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL
|
||||
#define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL 1
|
||||
#endif
|
||||
|
||||
|
||||
namespace mbed {
|
||||
/** \addtogroup platform-public-api */
|
||||
/** @{*/
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
"value": 8
|
||||
},
|
||||
"callback-nontrivial": {
|
||||
"help": "Enables support for non-trivial callable objects in Callback. Can be disabled to save ROM if no-one is using non-trivial types. Changing this value may cause incompatibility with pre-built binaries.",
|
||||
"help": "Enables support for non-trivial callable objects in Callback. Can be disabled to save ROM if no-one is using non-trivial types. Changing this value may cause incompatibility with pre-built binaries. Choice not available with IAR, value forced to true.",
|
||||
"value": false
|
||||
},
|
||||
"callback-comparable": {
|
||||
|
|
Loading…
Reference in New Issue