Skip to content

Commit

Permalink
[NTUSER] Remove RETURN() macro
Browse files Browse the repository at this point in the history
It's just a wrapper for goto, most of the time it make the code more complicated than using goto directly.
  • Loading branch information
TAN-Gaming committed Dec 19, 2023
1 parent 512094e commit 331dd12
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions win32ss/user/ntuser/ntuser.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 331dd12

Please sign in to comment.