registers.cpp:4:9: error: "and" cannot be used as a macro name as it is an operator in C++
4 | #define and append_and
| ^~~
registers.cpp:5:9: error: "or" cannot be used as a macro name as it is an operator in C++
5 | #define or append_or
| ^~
registers.cpp:6:9: error: "xor" cannot be used as a macro name as it is an operator in C++
6 | #define xor append_xor
| ^~~
registers.cpp:7:9: error: "not" cannot be used as a macro name as it is an operator in C++
7 | #define not append_not
| ^~~
registers.cpp: In function 'void construct_instructions(int, int, int, int)':
registers.cpp:15:19: error: expected identifier before '(' token
15 | return and(0,1,0);
| ^
registers.cpp:15:19: error: expected ';' before '(' token
15 | return and(0,1,0);
| ^
| ;
registers.cpp:15:20: warning: left operand of comma operator has no effect [-Wunused-value]
15 | return and(0,1,0);
| ^
registers.cpp:15:24: warning: right operand of comma operator has no effect [-Wunused-value]
15 | return and(0,1,0);
| ^
registers.cpp:17:8: error: expected identifier before '(' token
17 | and(2, 1, 0);
| ^
registers.cpp:20:8: error: expected identifier before '(' token
20 | and(5, 4, 0);
| ^
registers.cpp:21:8: error: expected identifier before '(' token
21 | and(6, 3, 1);
| ^
registers.cpp:22:5: error: expected primary-expression before 'xor' token
22 | xor(7, 6, 5);
| ^~~
registers.cpp:22:9: warning: left operand of comma operator has no effect [-Wunused-value]
22 | xor(7, 6, 5);
| ^
registers.cpp:22:15: warning: right operand of comma operator has no effect [-Wunused-value]
22 | xor(7, 6, 5);
| ^
registers.cpp:23:9: warning: left operand of comma operator has no effect [-Wunused-value]
23 | not(8, 2);
| ^
registers.cpp:23:14: warning: right operand of comma operator has no effect [-Wunused-value]
23 | not(8, 2);
| ^
registers.cpp:24:8: error: expected identifier before '(' token
24 | and(9, 8, 7);
| ^
registers.cpp:27:5: error: expected primary-expression before 'or' token
27 | or(0, 10, 2);
| ^~
registers.cpp:27:8: warning: left operand of comma operator has no effect [-Wunused-value]
27 | or(0, 10, 2);
| ^
registers.cpp:27:15: warning: right operand of comma operator has no effect [-Wunused-value]
27 | or(0, 10, 2);
| ^