系统异常服务 (Except Service)
概述
接口定义
except_process_t回调函数
typedef void (*except_process_t)(int errno, const char *file, int line, const char *func_name, void *caller)
IN/OUT | NAME | DESC |
---|---|---|
[in] | errno | error number. |
[in] | file | assertion file name. |
[in] | line | assertion line number. |
[in] | func_name | assertion function name. |
[in] | caller | assertion function caller. |
Returns N/A.
aos_set_except_callback
void aos_set_except_callback(except_process_t except)
This function will set the exception callback function.
Parameters
IN/OUT | NAME | DESC |
---|---|---|
[in] | except | except callback function. |
Returns N/A.
aos_set_except_default
void aos_set_except_default()
This function will set the exception callback function to the default mode.
Parameters
IN/OUT | NAME | DESC |
---|---|---|
N/A |
Returns N/A.
aos_except_process
void aos_except_process(int errno, const char *file, int line, const char *func_name, void *caller)
This function will process the exception callback function.
Parameters
IN/OUT | NAME | DESC |
---|---|---|
[in] | errno | error number. |
[in] | file | assertion file name. |
[in] | line | assertion line number. |
[in] | func_name | assertion function name. |
[in] | caller | assertion function caller. |
Returns N/A.