JAHostIO and friends (#3131)

This commit is contained in:
Roman Sandu
2026-03-27 04:54:07 +03:00
committed by GitHub
parent f8cf545848
commit 0fc019dcfa
59 changed files with 2133 additions and 525 deletions
+4
View File
@@ -152,6 +152,7 @@ static const float INF = 2000000000.0f;
#ifdef __MWERKS__
#define MULTI_CHAR(x) (x)
#else
#if __cplusplus
template <int N>
inline constexpr unsigned long long MultiCharLiteral(const char (&buf)[N]) {
static_assert(N - 1 >= 3 && N - 1 <= 10, "MULTI_CHAR literal must be 1-8 characters");
@@ -163,6 +164,7 @@ static const float INF = 2000000000.0f;
}
#define MULTI_CHAR(x) MultiCharLiteral(#x)
#endif
#endif
// potential fakematch?
#if DEBUG
@@ -172,9 +174,11 @@ static const float INF = 2000000000.0f;
#endif
#ifndef __MWERKS__
#if __cplusplus
#include <cmath>
using std::isnan;
#endif
#endif
// Comparing a non-volatile reference type to NULL is tautological
// and triggers a warning on modern compilers, but in some cases is