mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
f50d83413e
Some files that should have their copyrights checked are still placed on the copyright ignore list. - These entries have been tidied up - Copyrights of those files have been updated.
21 lines
561 B
C
21 lines
561 B
C
/*
|
|
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include_next <setjmp.h>
|
|
#include "esp_debug_helpers.h"
|
|
|
|
/*
|
|
* This is the middle layer of setjmp to be used with the unity.
|
|
*/
|
|
|
|
/** Insert backtrace before longjmp (TEST_ABORT).
|
|
*
|
|
* Currently we only do long jump before test is ignored or failed.
|
|
* If this is also called when test pass, we may need to add some check before
|
|
* backtrace is called.
|
|
*/
|
|
#define longjmp(buf, val) do {esp_backtrace_print(100); longjmp(buf, val);} while(0)
|