test(libs): report the failing line of the AMPR tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chad
2026-10-05 15:56:48 -05:00
parent 0cb5ca7203
commit 164fcf7a05
+7 -1
View File
@@ -92,7 +92,13 @@ std::uint64_t APS5_VABI sceAmprMeasureCommandSizeMapEnd();
int APS5_VABI sceAmprCommandBufferWriteCounter_04_00(Apr::CommandBufferObject*, std::uint8_t, std::uint8_t, std::uint64_t, std::uint8_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 {