diff --git a/tile/base/internal/format.h b/tile/base/internal/format.h index e42b093..877dc3a 100644 --- a/tile/base/internal/format.h +++ b/tile/base/internal/format.h @@ -105,9 +105,9 @@ TILE_INSTANCE_CHRONO_FORMAT_AS(std::chrono::years, "y") #include "fmt/format.h" #include "fmt/ostream.h" -inline std::ostream &operator<<(std::ostream &os, std::nullptr_t) { - return os << "nullptr"; -} +// inline std::ostream &operator<<(std::ostream &os, std::nullptr_t) { +// return os << "nullptr"; +// } // template *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; }