feat(libs): add general not implemented helper
This commit is contained in:
parent
58aef08fe1
commit
ec8faf3ed7
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef CORE_LIBS_PRX_LIBC_INCLUDE_GENERAL_HPP
|
||||
#define CORE_LIBS_PRX_LIBC_INCLUDE_GENERAL_HPP
|
||||
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
inline void NotImplemented_nid_no_patch(const char* funcName) {
|
||||
throw std::runtime_error(std::string(funcName) + " not implemented");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -3,12 +3,12 @@
|
|||
#include <cstdlib>
|
||||
#include <cctype>
|
||||
#include <cwchar>
|
||||
#include <stdexcept>
|
||||
#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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue