Minor format
This commit is contained in:
parent
cb013604a9
commit
f9e379c82a
|
@ -1284,18 +1284,18 @@ fcontext_t LIBCONTEXT_CALL_CONVENTION make_fcontext(void* sp, size_t size, void(
|
|||
{
|
||||
if (!threadHasFibers)
|
||||
{
|
||||
ConvertThreadToFiberEx(nullptr, FIBER_FLAG_FLOAT_SWITCH);
|
||||
ConvertThreadToFiberEx( nullptr, FIBER_FLAG_FLOAT_SWITCH );
|
||||
threadHasFibers = 1;
|
||||
}
|
||||
|
||||
fcontext_t ctx = CreateFiberEx(size - 1, size, FIBER_FLAG_FLOAT_SWITCH, (LPFIBER_START_ROUTINE) fiberEntry, nullptr );
|
||||
fcontext_t ctx = CreateFiberEx( size - 1, size, FIBER_FLAG_FLOAT_SWITCH, (LPFIBER_START_ROUTINE) fiberEntry, nullptr );
|
||||
fiberParams[ctx].entry = fn;
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
||||
intptr_t LIBCONTEXT_CALL_CONVENTION jump_fcontext(fcontext_t* ofc, fcontext_t nfc,
|
||||
intptr_t vp, bool preserve_fpu)
|
||||
intptr_t LIBCONTEXT_CALL_CONVENTION jump_fcontext( fcontext_t* ofc, fcontext_t nfc,
|
||||
intptr_t vp, bool preserve_fpu )
|
||||
{
|
||||
*ofc = GetCurrentFiber();
|
||||
fiberParams[nfc].inValue = vp;
|
||||
|
|
Loading…
Reference in New Issue