diff --git a/core/libs/tests/GuestAmpr.cpp b/core/libs/tests/GuestAmpr.cpp index 8c40ffda8..b1087ad03 100644 --- a/core/libs/tests/GuestAmpr.cpp +++ b/core/libs/tests/GuestAmpr.cpp @@ -114,7 +114,13 @@ std::int64_t APS5_VABI sceAmprAmmMeasureAmmCommandSizeModifyMtypeProtect(std::ui std::int64_t APS5_VABI sceAmprAmmMeasureAmmCommandSizeModifyMtypeProtectWithGpuMaskId(std::uint64_t, std::uint64_t, std::int32_t, std::int32_t, std::int32_t, std::uint8_t); } -static void Require(bool value) { if (!value) std::abort(); } +static void RequireAt(bool value, int line) { + if (value) return; + std::fprintf(stderr, "GuestAmpr.cpp:%d: requirement failed\n", line); + std::abort(); +} + +#define Require(value) RequireAt((value), __LINE__) namespace {