This commit is contained in:
commit
47aee91ef4
396 changed files with 32003 additions and 0 deletions
40
tools/psyq/include/SETJMP.H
Normal file
40
tools/psyq/include/SETJMP.H
Normal file
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* $PSLibId: Run-time Library Release 4.7$
|
||||
*/
|
||||
/*
|
||||
* File:setjmp.h
|
||||
* simple non-local-jump for single task environment
|
||||
*/
|
||||
|
||||
#ifndef _SETJMP_H
|
||||
#define _SETJMP_H
|
||||
|
||||
/* jmp_buf indices */
|
||||
#define JB_PC 0
|
||||
#define JB_SP 1
|
||||
#define JB_FP 2
|
||||
#define JB_S0 3
|
||||
#define JB_S1 4
|
||||
#define JB_S2 5
|
||||
#define JB_S3 6
|
||||
#define JB_S4 7
|
||||
#define JB_S5 8
|
||||
#define JB_S6 9
|
||||
#define JB_S7 10
|
||||
#define JB_GP 11
|
||||
|
||||
#define JB_SIZE 12
|
||||
|
||||
#if defined(_LANGUAGE_C)||defined(LANGUAGE_C)||defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus)
|
||||
typedef int jmp_buf[JB_SIZE];
|
||||
#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int setjmp(jmp_buf);
|
||||
extern void longjmp(jmp_buf, int);
|
||||
#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* _SETJMP_H */
|
Loading…
Add table
Add a link
Reference in a new issue