mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
assert: Distinguish between assert and exception
CURRENT_REGS may change during assert handling, so pass in the 'regs' parameter at the entry point of _assert. Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
@@ -33,6 +33,6 @@
|
||||
|
||||
void __assert(FAR const char *filename, int linenum, FAR const char *msg)
|
||||
{
|
||||
_assert(filename, linenum, msg);
|
||||
_assert(filename, linenum, msg, NULL);
|
||||
abort();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user