use macro for getcontext (setjmp)
This commit is contained in:
parent
b4d5d19438
commit
1e05fdf92c
8 changed files with 25 additions and 56 deletions
|
|
@ -437,8 +437,8 @@ _threadpexit(void)
|
|||
}
|
||||
|
||||
#ifdef __arm__
|
||||
extern int getmcontext(mcontext_t*);
|
||||
extern int setmcontext(const mcontext_t*);
|
||||
#define setcontext(u) setmcontext(&(u)->uc_mcontext)
|
||||
#define getcontext(u) getmcontext(&(u)->uc_mcontext)
|
||||
|
||||
void
|
||||
makecontext(ucontext_t *uc, void (*fn)(void), int argc, ...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue