PS5 graphics (#42)

This commit is contained in:
InoriRus
2022-08-16 13:38:38 +03:00
parent e110bd0f63
commit 90acd3d364
46 changed files with 12642 additions and 3962 deletions
@@ -20,6 +20,19 @@ constexpr int OK = 0;
return 0; \
}()
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define POSIX_N_CALL(func) \
[&]() \
{ \
auto result = func; \
if (result < 0) \
{ \
*Posix::GetErrorAddr() = LibKernel::KernelToPosix(static_cast<int>(result)); \
return static_cast<decltype(result)>(-1); \
} \
return result; \
}()
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define POSIX_PTHREAD_CALL(func) \
[&]() \