Fixed clang compilation and added support for making assertions and erros throw exceptions for easier testing.
This commit is contained in:
@@ -14,6 +14,11 @@
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
|
||||
#if MIJIN_COMPILER == MIJIN_COMPILER_CLANG
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||
#endif // MIJIN_COMPILER == MIJIN_COMPILER_CLANG
|
||||
|
||||
namespace mijin
|
||||
{
|
||||
namespace
|
||||
@@ -289,3 +294,7 @@ Task<StreamResult<std::vector<ip_address_t>>> c_resolveHostname(std::string host
|
||||
co_return osResolveResult(resolveHandle);
|
||||
}
|
||||
}
|
||||
|
||||
#if MIJIN_COMPILER == MIJIN_COMPILER_CLANG
|
||||
#pragma clang diagnostic pop
|
||||
#endif // MIJIN_COMPILER == MIJIN_COMPILER_CLANG
|
||||
|
||||
Reference in New Issue
Block a user