replace macros with `constexpr` variables

This commit is contained in:
Markus Pilman 2020-05-04 12:12:27 -07:00
parent f967209ea0
commit 046f97ffdd
1 changed files with 5 additions and 12 deletions

View File

@ -34,18 +34,11 @@
#include "bindings/flow/DirectoryLayer.h"
#include "flow/actorcompiler.h" // This must be the last #include.
#define LOG_ALL 0
#if LOG_ALL == 1
# define LOG_INSTRUCTIONS 1
# define LOG_OPS LOG_ALL 1
# define LOG_DIRS LOG_ALL 1
# define LOG_ERRORS LOG_ALL 1
#else
# define LOG_INSTRUCTIONS 0
# define LOG_OPS 0
# define LOG_DIRS 0
# define LOG_ERRORS 0
#endif
constexpr bool LOG_ALL = false;
constexpr bool LOG_INSTRUCTIONS = LOG_ALL || false;
constexpr bool LOG_OPS = LOG_ALL || false;
constexpr bool LOG_DIRS = LOG_ALL || false;
constexpr bool LOG_ERRORS = LOG_ALL || false;
struct FlowTesterData;