setjmp.h
来自「自己从头开始开发操作系统的几个实例」· C头文件 代码 · 共 25 行
H
25 行
#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
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?