dos_compilers/Borland Turbo C++ v1/INCLUDE/SETJMP.H

48 lines
733 B
C++
Raw Permalink Normal View History

2024-07-02 16:34:51 +02:00
/* setjmp.h
Defines typedef and functions for setjmp/longjmp.
Copyright (c) Borland International 1987,1988,1990
All Rights Reserved.
*/
#ifndef __SETJMP_H
#define __SETJMP_H
#if __STDC__
#define _Cdecl
#else
#define _Cdecl cdecl
#endif
#ifndef __PAS__
#define _CType _Cdecl
#else
#define _CType pascal
#endif
typedef struct {
unsigned j_sp;
unsigned j_ss;
unsigned j_flag;
unsigned j_cs;
unsigned j_ip;
unsigned j_bp;
unsigned j_di;
unsigned j_es;
unsigned j_si;
unsigned j_ds;
} jmp_buf[1];
#ifdef __cplusplus
extern "C" {
#endif
void _CType longjmp(jmp_buf __jmpb, int __retval);
int _CType setjmp(jmp_buf __jmpb);
#ifdef __cplusplus
}
#endif
#endif