Standardize the uv_check_result function (#132)

This commit is contained in:
Perdixky
2025-06-05 20:57:50 +08:00
committed by GitHub
parent 3b776ee9f9
commit bdfb85d0d6
5 changed files with 35 additions and 38 deletions

View File

@@ -7,4 +7,4 @@
#include "Network.h"
#include "FileSystem.h"
#include "ThreadPool.h"
#include "libuv.h"

View File

@@ -16,6 +16,7 @@
#include <system_error>
#include "Support/TypeTraits.h"
#include "Support/Logger.h"
namespace clice::async {
@@ -58,6 +59,8 @@ T* uv_cast(U& u) {
return reinterpret_cast<T*>(&u);
}
void uv_check_result(const int result, const std::source_location location = std::source_location::current());
template <typename T>
class Task;