setjmp.h does not include definition of jmp_buf

matherp
Posts: 5
Joined: Mon Dec 21, 2020 8:03 pm

setjmp.h does not include definition of jmp_buf

Postby matherp » Mon Jan 25, 2021 7:31 pm

Attached below is the file setjmp.h from the idf directory - no mention of jmp_buf and so my program fails to compile.
Help appreciated.

Code: Select all

#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)

Who is online

Users browsing this forum: Bing [Bot] and 81 guests