In some C++ file, I found:
#ifndef UE_WITH_CHEAT_MANAGER
#define UE_WITH_CHEAT_MANAGER (1 && !UE_BUILD_SHIPPING)
#endif
Comming from CheatManager.h.
What is the difference with:
#ifndef UE_WITH_CHEAT_MANAGER
#define UE_WITH_CHEAT_MANAGER (!UE_BUILD_SHIPPING)
#endif
Is it in order to prevent warnings on some specific compiler?
Additional info:
UE_BUILD_SHIPPINGis 0 by default and is set to 1 for shipping builds (builds that are distributed to consumers/players).UE_WITH_CHEAT_MANAGERis used to exclude some part of the code from compilation.
(Edited to answer requests in comments.)