Force callback non-trivial for IAR

pull/13015/head
jeromecoutant 2020-05-25 14:23:20 +02:00
parent 9a8c9e2c29
commit d8fc1e9121
2 changed files with 8 additions and 1 deletions

View File

@ -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 */
/** @{*/

View File

@ -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": {