mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-23 09:03:22 -05:00
feat(libs): add change export name macros
This commit is contained in:
1 parent
abc72da741
commit
411a4d00a5
2 files changed
+15
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user