Happy New Year 🥳

This commit is contained in:
BlackMATov
2022-07-03 22:18:20 +07:00
parent afdd9467ee
commit 8313f8e3f9
5 changed files with 18 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (C) 2019-2021, by Matvey Cherevko (blackmatov@gmail.com)
Copyright (C) 2019-2022, by Matvey Cherevko (blackmatov@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@@ -1,7 +1,7 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/curly.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2019-2021, by Matvey Cherevko (blackmatov@gmail.com)
* Copyright (C) 2019-2022, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#pragma once

View File

@@ -1,7 +1,7 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/curly.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2019-2021, by Matvey Cherevko (blackmatov@gmail.com)
* Copyright (C) 2019-2022, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#include <curly.hpp/curly.hpp>
@@ -35,6 +35,7 @@ namespace
public:
using data_t = std::vector<char>;
[[maybe_unused]]
explicit default_uploader(const data_t* src) noexcept
: data_(*src)
, size_(src->size()) {}
@@ -59,6 +60,7 @@ namespace
public:
using data_t = std::vector<char>;
[[maybe_unused]]
explicit default_downloader(data_t* dst) noexcept
: data_(*dst) {}
@@ -72,6 +74,7 @@ namespace
class default_progressor final : public progress_handler {
public:
[[maybe_unused]]
default_progressor() = default;
float update(
@@ -251,6 +254,7 @@ namespace
}
}
[[maybe_unused]]
~curl_state() noexcept {
std::lock_guard<std::mutex> guard(mutex_);
curl_multi_cleanup(curlm_);

View File

@@ -1,10 +1,10 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/curly.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2019-2021, by Matvey Cherevko (blackmatov@gmail.com)
* Copyright (C) 2019-2022, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#include "doctest/doctest.h"
#include "doctest/doctest.hpp"
#include <curly.hpp/curly.hpp>
namespace net = curly_hpp;

View File

@@ -1,7 +1,16 @@
#pragma once
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-identifier"
#endif
#include "doctest.h"
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#define STATIC_REQUIRE(...)\
static_assert(__VA_ARGS__, #__VA_ARGS__);\
REQUIRE(__VA_ARGS__);