From 331dd125ee8b0603996665c4a85cbea405cc6e2c Mon Sep 17 00:00:00 2001 From: Thamatip Chitpong Date: Tue, 19 Dec 2023 12:41:34 +0700 Subject: [PATCH] [NTUSER] Remove RETURN() macro It's just a wrapper for goto, most of the time it make the code more complicated than using goto directly. --- win32ss/user/ntuser/ntuser.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/win32ss/user/ntuser/ntuser.h b/win32ss/user/ntuser/ntuser.h index 7c878c4f793b2..28b9ac6e59c2d 100644 --- a/win32ss/user/ntuser/ntuser.h +++ b/win32ss/user/ntuser/ntuser.h @@ -1,10 +1,5 @@ #pragma once -#define DECLARE_RETURN(type) type _ret_ -#define RETURN(value) { _ret_ = value; goto _cleanup_; } -#define CLEANUP /*unreachable*/ ASSERT(FALSE); _cleanup_ -#define END_CLEANUP return _ret_; - #define UserEnterCo UserEnterExclusive #define UserLeaveCo UserLeave