From edaefe9fa6f354b5de45a46adfcdd129f549185b Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 9 Jun 2014 22:40:52 -0400 Subject: HLE: Moved "PARAM" and "RETURN" macros to function_wrappers.h (this is only module where they are needed). --- src/core/hle/function_wrappers.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/hle/function_wrappers.h') diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index aa5278c8a..0bed78653 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h @@ -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 Wrap() { func(Memory::GetCharPointer(PARAM(0))); } +#undef PARAM +#undef RETURN + } // namespace HLE -- cgit v1.2.3