feat(libs): add change export name macros

This commit is contained in:
boykopovar 2026-09-10 08:22:39 +03:00
parent abc72da741
commit 411a4d00a5
2 changed files with 15 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include "general/LogMacros.hpp"
#include "general/VabiMacros.hpp"
#include "general/ExportMacros.hpp"
extern "C" void NotImplemented_nid_no_patch(const char* funcName);

View File

@ -0,0 +1,14 @@
#ifndef CORE_LIBS_PRX_LIBC_INCLUDE_GENERAL_EXPORTMACROS_HPP
#define CORE_LIBS_PRX_LIBC_INCLUDE_GENERAL_EXPORTMACROS_HPP
#if defined(__GNUC__) || defined(__clang__)
#define APS_EXPORT(exportName, funcName) \
__asm__(".globl " exportName "\n" exportName " = " #funcName "_nid_no_patch_cut")
#elif defined(_MSC_VER)
#define APS_EXPORT(exportName, funcName) \
__pragma(comment(linker, "/export:" exportName "=" #funcName "_nid_no_patch_cut"))
#else
#define APS_EXPORT(exportName, funcName)
#endif
#endif