use macro for getcontext (setjmp)
This commit is contained in:
parent
b4d5d19438
commit
1e05fdf92c
8 changed files with 25 additions and 56 deletions
|
|
@ -15,19 +15,6 @@ makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
|
|||
va_end(arg);
|
||||
}
|
||||
|
||||
int
|
||||
getcontext(ucontext_t *uc)
|
||||
{
|
||||
return _getmcontext(&uc->mc);
|
||||
}
|
||||
|
||||
int
|
||||
setcontext(ucontext_t *uc)
|
||||
{
|
||||
_setmcontext(&uc->mc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
swapcontext(ucontext_t *oucp, ucontext_t *ucp)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue