Compare structure name to #defined value
Hi. Ive just started on C, and so that I dont have to double my code in a small test programme I've made I decided to use
#define curplay play1
where play1 is the name of a structure variable.
So the first time it goes through my programme it runs it as play1 whenever i type curplay, but before it restarts I want to change curplay to play2.
I tried typing
if (curplay=play1) curplay=play2;
but I get this error for that line:
"invalid operands to binary !="
Is there anyway i can switch curplay over to play2 at the end of my code?
Thanks in advance.