mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-06 15:26:31 +02:00
Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Unexpected Maker <seon@unexpectedmaker.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Ivan Grokhotkov <ivan@espressif.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Limor "Ladyada" Fried <limor@ladyada.net>
15 lines
443 B
C
15 lines
443 B
C
#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)
|