#ifndef DEF_LIBC_SETJMP_H #define DEF_LIBC_SETJMP_H #include typedef struct { uint32_t ebp; //0 uint32_t ebx; //4 uint32_t edi; //8 uint32_t esi; //12 uint32_t esp; //16 uint32_t eip; //20 } jmp_buf[1]; #ifdef __cplusplus extern "C" { #endif int setjmp(jmp_buf env); void longjmp(jmp_buf, int val); #ifdef __cplusplus } #endif #endif