From 56a12ea2e2f7e8d2dc36f763e8b7153a0ee24d65 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Mon, 17 Jun 2024 13:18:22 +0800 Subject: [PATCH] fix remove ostream< *fn = static_cast *>(t.data); - TILE_CHECK_NE(t.data, nullptr); - TILE_CHECK_NE(t.fctx, nullptr); + TILE_CHECK(t.data != nullptr); + TILE_CHECK(t.fctx != nullptr); Fiber *self = nullptr; try { @@ -84,7 +84,7 @@ fcontext_t CreateFiber(void *stack, std::size_t stack_size, std::function *fn) { void *stack_top = static_cast(stack) + stack_size; const fcontext_t fctx = make_fcontext(stack_top, stack_size, FiberEntry); - TILE_CHECK_NE(fctx, nullptr); + TILE_CHECK(fctx != nullptr); return jump_fcontext(fctx, fn).fctx; }