Appiko
codebase
util
nrf_assert.h
1
19
#ifndef CODEBASE_ASSERT_ERROR_NRF_ASSERT_H_
20
#define CODEBASE_ASSERT_ERROR_NRF_ASSERT_H_
21
32
#include "stdint.h"
33
#include "stdbool.h"
34
#include "assert.h"
35
#include "common_util.h"
36
43
void
assert_nrf_callback
(uint16_t line_num,
const
uint8_t * file_name);
44
48
#define ASSERT(expression) if ((expression) == false) \
49
{ \
50
assert_nrf_callback((uint16_t)__LINE__, (uint8_t *)__FILE__); \
51
}
52
53
#endif
/* CODEBASE_ASSERT_ERROR_NRF_ASSERT_H_ */
54
assert_nrf_callback
void assert_nrf_callback(uint16_t line_num, const uint8_t *file_name)
Function called for handling runtime assertions. It prints the assertion log and stays in an infinite...
Definition:
nrf_assert.c:37
Generated by
1.8.15