#include "prx/libSceAvPlayer.native/include/Api.hpp" #include "SceTypes.hpp" #include "prx/libc/include/general/VabiMacros.hpp" #include #include #include static bool ThrowsNotImplemented(int (APS5_VABI* function)(void), const char* name) { try { function(); } catch (const std::runtime_error& error) { return std::string(error.what()) == std::string(name) + " not implemented"; } return false; } int main() { struct Export { int (APS5_VABI* function)(void); const char* name; }; const Export exports[] = { {sceAvPlayerPrintf, "sceAvPlayerPrintf"}, {sceAvPlayerVprintf, "sceAvPlayerVprintf"}, }; for (const auto& entry : exports) { if (!ThrowsNotImplemented(entry.function, entry.name)) { std::fprintf(stderr, "%s did not throw its not-implemented error\n", entry.name); return 1; } } std::puts("libSceAvPlayer.native pending exports throw"); return 0; }