diff --git a/core/libs/prx/libc/include/General.hpp b/core/libs/prx/libc/include/General.hpp new file mode 100644 index 000000000..72085eb73 --- /dev/null +++ b/core/libs/prx/libc/include/General.hpp @@ -0,0 +1,11 @@ +#ifndef CORE_LIBS_PRX_LIBC_INCLUDE_GENERAL_HPP +#define CORE_LIBS_PRX_LIBC_INCLUDE_GENERAL_HPP + +#include +#include + +inline void NotImplemented_nid_no_patch(const char* funcName) { + throw std::runtime_error(std::string(funcName) + " not implemented"); +} + +#endif diff --git a/core/libs/prx/libc/src/Strings.cpp b/core/libs/prx/libc/src/Strings.cpp index 4bdf41539..d34531cf8 100644 --- a/core/libs/prx/libc/src/Strings.cpp +++ b/core/libs/prx/libc/src/Strings.cpp @@ -3,12 +3,12 @@ #include #include #include -#include +#include "prx/libc/include/General.hpp" extern "C" { void* memset_nid_postfix(void* s, int c, size_t n) { - throw std::runtime_error("libc memset not implemented"); + NotImplemented_nid_no_patch(__func__); return std::memset(s, c, n); }