/* Completes the execution of an interrupted C function, calling its continuation function.  */
static void finishCcall(lua_State *L, int status)
/* Completes the execution of an interrupted C function, calling its continuation function.  */
static void finishCcall(lua_State *L, int status)
{
    ci->callstatus &= ~CIST_YPCALL;
    L->errfunc = ci->u.c.old_errfunc;
  }
  adjustresults(L, ci->nresults);
  lua_unlock(L);
  n = (*ci->u.c.k)(L, status, ci->u.c.ctx);
  lua_lock(L);
  api_checknelems(L, n);
  luaD_poscall(L, ci, L->top - n, n);
}