3 ms·
#define ONE 1 is bad code. good code would be #define MAX_FOO 1 #define TOTAL_SUPPORTED_BAR_COUNT 1 #define STATUS_BYTE_OFFSET 1 The important thing there is
by bluGill 3y ago
#define ONE 1 is bad code.
good code would be
#define MAX_FOO 1
#define TOTAL_SUPPORTED_BAR_COUNT 1
#define STATUS_BYTE_OFFSET 1
The important thing there is even though all are one we have both given them a unique name, and indicated why they are one.