mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
HLE: Moved "PARAM" and "RETURN" macros to function_wrappers.h (this is only module where they are needed).
This commit is contained in:
parent
8957622d10
commit
edaefe9fa6
2 changed files with 6 additions and 5 deletions
|
@ -10,6 +10,9 @@
|
|||
|
||||
namespace HLE {
|
||||
|
||||
#define PARAM(n) Core::g_app_core->GetReg(n)
|
||||
#define RETURN(n) Core::g_app_core->SetReg(0, n)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Function wrappers that return type s32
|
||||
|
||||
|
@ -105,4 +108,7 @@ template<void func(const char*)> void Wrap() {
|
|||
func(Memory::GetCharPointer(PARAM(0)));
|
||||
}
|
||||
|
||||
#undef PARAM
|
||||
#undef RETURN
|
||||
|
||||
} // namespace HLE
|
||||
|
|
|
@ -9,11 +9,6 @@
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define PARAM(n) Core::g_app_core->GetReg(n)
|
||||
#define RETURN(n) Core::g_app_core->SetReg(0, n)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace HLE {
|
||||
|
||||
extern bool g_reschedule; ///< If true, immediately reschedules the CPU to a new thread
|
||||
|
|
Loading…
Reference in a new issue