porting: Fix build error

'OS_ASSERT_CRITICAL();' won't build if assert is defined as 'if () {}'.
This commit is contained in:
Andrzej Kaczmarek
2019-03-01 12:10:48 +01:00
parent 3ac89668f8
commit a39b15bf4b
+1 -1
View File
@@ -47,7 +47,7 @@ extern "C" {
typedef uint32_t os_sr_t;
#define OS_ENTER_CRITICAL(_sr) (_sr = ble_npl_hw_enter_critical())
#define OS_EXIT_CRITICAL(_sr) (ble_npl_hw_exit_critical(_sr))
#define OS_ASSERT_CRITICAL() (assert(ble_npl_hw_is_in_critical()))
#define OS_ASSERT_CRITICAL() assert(ble_npl_hw_is_in_critical())
/* Mynewt components (not abstracted in NPL) */
#include "os/endian.h"