mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
wmaker: Changed name of parameter in macro WCHECK_STATE
The name will be a problem with next change because it uses a too common word which will be useful at a better place. Took the opportunity to rewitre the check in the human logical thinking order to make it easier to read.
This commit is contained in:
committed by
Carlos R. Mafra
parent
28bbf705eb
commit
70c6494c46
@@ -238,7 +238,7 @@ typedef enum {
|
|||||||
} wprog_state;
|
} wprog_state;
|
||||||
|
|
||||||
|
|
||||||
#define WCHECK_STATE(state) (state == WProgramState)
|
#define WCHECK_STATE(chk_state) (WProgramState == (chk_state))
|
||||||
|
|
||||||
|
|
||||||
#define WCHANGE_STATE(nstate) {\
|
#define WCHANGE_STATE(nstate) {\
|
||||||
|
|||||||
Reference in New Issue
Block a user