テスト用
Fork of nRF51822 by
Diff: nordic/nrf-sdk/nrf_assert.h
- Revision:
- 49:c941433e0eb0
- Parent:
- 37:c29c330d942c
- Child:
- 65:98215c4f3a25
--- a/nordic/nrf-sdk/nrf_assert.h Mon Jul 21 08:28:53 2014 +0100 +++ b/nordic/nrf-sdk/nrf_assert.h Wed Jul 23 11:59:36 2014 +0100 @@ -16,6 +16,10 @@ #include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + #if defined(DEBUG_NRF) || defined(DEBUG_NRF_USER) /** @brief Function for handling assertions. @@ -36,7 +40,7 @@ */ void assert_nrf_callback(uint16_t line_num, const uint8_t *file_name); -/*lint -emacro(506, ASSERT) */ /* Suppress "Constant value Boolean */ +/*lint -emacro(506, ASSERT) */ /* Suppress "Constant value Boolean */ /*lint -emacro(774, ASSERT) */ /* Suppress "Boolean within 'if' always evaluates to True" */ \ /** @brief Function for checking intended for production code. @@ -53,6 +57,11 @@ #else #define ASSERT(expr) //!< Assert empty when disabled void assert_nrf_callback(uint16_t line_num, const uint8_t *file_name); + #endif /* defined(DEBUG_NRF) || defined(DEBUG_NRF_USER) */ +#ifdef __cplusplus +} +#endif + #endif /* NRF_ASSERT_H_ */