Standardize the uv_check_result function (#132)
This commit is contained in:
@@ -7,4 +7,4 @@
|
||||
#include "Network.h"
|
||||
#include "FileSystem.h"
|
||||
#include "ThreadPool.h"
|
||||
|
||||
#include "libuv.h"
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user