feat(libs): add general not implemented helper

This commit is contained in:
boykopovar 2026-09-06 14:11:05 +03:00
parent 58aef08fe1
commit ec8faf3ed7
2 changed files with 13 additions and 2 deletions

View File

@ -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

View File

@ -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);
}