feat(libs): add change export name macros
This commit is contained in:
parent
abc72da741
commit
411a4d00a5
|
|
@ -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
|
||||
Loading…
Reference in New Issue