Bluetooth: Mesh: Missing _ when concate with _name
Add `_` for concate with _name. Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
parent
4a8a1577ef
commit
8131d848f2
2 changed files with 7 additions and 7 deletions
|
@ -598,9 +598,9 @@ struct bt_mesh_lpn_cb {
|
|||
*
|
||||
* @param _name Name of callback structure.
|
||||
*/
|
||||
#define BT_MESH_LPN_CB_DEFINE(_name) \
|
||||
static const STRUCT_SECTION_ITERABLE(bt_mesh_lpn_cb, \
|
||||
_CONCAT(bt_mesh_lpn_cb, \
|
||||
#define BT_MESH_LPN_CB_DEFINE(_name) \
|
||||
static const STRUCT_SECTION_ITERABLE(bt_mesh_lpn_cb, \
|
||||
_CONCAT(bt_mesh_lpn_cb_, \
|
||||
_name))
|
||||
|
||||
/** Friend Node callback functions. */
|
||||
|
@ -651,9 +651,9 @@ struct bt_mesh_friend_cb {
|
|||
*
|
||||
* @param _name Name of callback structure.
|
||||
*/
|
||||
#define BT_MESH_FRIEND_CB_DEFINE(_name) \
|
||||
static const STRUCT_SECTION_ITERABLE(bt_mesh_friend_cb, \
|
||||
_CONCAT(bt_mesh_friend_cb, \
|
||||
#define BT_MESH_FRIEND_CB_DEFINE(_name) \
|
||||
static const STRUCT_SECTION_ITERABLE(bt_mesh_friend_cb, \
|
||||
_CONCAT(bt_mesh_friend_cb_, \
|
||||
_name))
|
||||
|
||||
/** @brief Terminate Friendship.
|
||||
|
|
|
@ -51,7 +51,7 @@ struct bt_mesh_proxy_cb {
|
|||
*/
|
||||
#define BT_MESH_PROXY_CB_DEFINE(_name) \
|
||||
static const STRUCT_SECTION_ITERABLE( \
|
||||
bt_mesh_proxy_cb, _CONCAT(bt_mesh_proxy_cb, _name))
|
||||
bt_mesh_proxy_cb, _CONCAT(bt_mesh_proxy_cb_, _name))
|
||||
|
||||
/** @brief Enable advertising with Node Identity.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue