#include "prx/libc/include/general/VabiMacros.hpp" #include #include #include extern "C" { int APS5_VABI sceContentDeleteById(); } namespace { bool ReportsNotImplemented(const char* name, int (APS5_VABI *function)()) { try { function(); } catch (const std::runtime_error& error) { if (std::string(error.what()) == std::string(name) + " not implemented") return true; std::fprintf(stderr, "%s threw: %s\n", name, error.what()); return false; } std::fprintf(stderr, "%s returned instead of reporting that it is not implemented\n", name); return false; } } int main() { bool correct = true; correct &= ReportsNotImplemented("sceContentDeleteById", sceContentDeleteById); return correct ? 0 : 1; }