Added support for completely disabling noexcept using MIJIN_TEST_NO_NOEXCEPT (for testing).

This commit is contained in:
2024-08-29 00:01:23 +02:00
parent a43f92fb58
commit 9ba097fc2f
41 changed files with 643 additions and 564 deletions

View File

@@ -2,6 +2,7 @@
#pragma once
#include "../../detect.hpp"
#include "../../internal/common.hpp"
#if MIJIN_TARGET_OS == MIJIN_OS_LINUX
#include <fcntl.h>
@@ -18,9 +19,9 @@
namespace mijin::detail
{
#if MIJIN_TARGET_OS == MIJIN_OS_WINDOWS
bool initWSA() noexcept;
StreamError translateWSAError() noexcept;
StreamError translateWinError(DWORD error) noexcept;
StreamError translateWinError() noexcept;
bool initWSA() MIJIN_NOEXCEPT;
StreamError translateWSAError() MIJIN_NOEXCEPT;
StreamError translateWinError(DWORD error) MIJIN_NOEXCEPT;
StreamError translateWinError() MIJIN_NOEXCEPT;
#endif // MIJIN_TARGET_OS == MIJIN_OS_WINDOWS
}// namespace mijin::detail