From 7b68fbc7bbfb6924835b8cbd74513131325235cf Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 1 Dec 2010 21:39:38 +0000 Subject: [PATCH] [CMAKE] Convert __wine_spec_unimplemented_stub to a macro svn path=/branches/cmake-bringup/; revision=49888 --- include/reactos/stubs.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/include/reactos/stubs.h b/include/reactos/stubs.h index 9e8700b302b..04f5ed6feee 100644 --- a/include/reactos/stubs.h +++ b/include/reactos/stubs.h @@ -7,11 +7,10 @@ #include -void __wine_spec_unimplemented_stub(const char *module, const char *function ) -{ - ULONG_PTR args[2]; - - args[0] = (ULONG_PTR)module; - args[1] = (ULONG_PTR)function; - RaiseException( EXCEPTION_WINE_STUB, EH_NONCONTINUABLE, 2, args ); +#define __wine_spec_unimplemented_stub(module, function) \ +{ \ + ULONG_PTR args[2]; \ + args[0] = (ULONG_PTR)module; \ + args[1] = (ULONG_PTR)function; \ + RaiseException( EXCEPTION_WINE_STUB, EH_NONCONTINUABLE, 2, args ); \ }