Newer
Older
UbixOS / Dump / hybos / include / setjmp.h
@cwolsen cwolsen on 31 Oct 2018 405 bytes Big Dump
#ifndef __TL_SETJMP_H
#define	__TL_SETJMP_H

#ifdef __cplusplus
extern "C"
{
#endif

typedef struct
{
/* setjmp() and longjmp() rely on the order of these registers,
so do not re-arrange them */
	unsigned edi, esi, ebp, esp, ebx, edx, ecx, eax;
	unsigned eip, eflags;
} jmp_buf[1];

int setjmp(jmp_buf b);
void longjmp(jmp_buf b, int ret_val);

#ifdef __cplusplus
}
#endif

#endif