06-07-2020, 07:44 AM
Hello,
I want to know if it is possible to define a Boolean type and do not use the one defined in the stdbool.h. Can I define Boolean like this: and and ? And If I define Boolean in this way, what operations, which if done using standard booleans would I violate?
Sorry in advance If the question is not too clear and If I made some mistake.
I want to know if it is possible to define a Boolean type and do not use the one defined in the stdbool.h. Can I define Boolean like this:
Code:
typedef uint8_t boolean;
Code:
#define TRUE 0x1
Code:
#define FALSE 0x0
Sorry in advance If the question is not too clear and If I made some mistake.