Help! What dose it means?
I download someone's base and i notice that there are something that i have never seen:
#define IsDamageGrenade (i == 6 || i == 126 || i == 200 || i == 209 || i == 210 || i == 240 || i == 313 || i == 338 || i == 357 || i == 416 || i == 423 || i == 438 || i == 473 || i == 519)
I have never seen this type of code in a C++ book. #define xxxxx ( || || || )
Can someone tell me? thanks!
#define IsDamageGrenade (i == 6 || i == 126 || i == 200 || i == 209 || i == 210 || i == 240 || i == 313 || i == 338 || i == 357 || i == 416 || i == 423 || i == 438 || i == 473 || i == 519)
I have never seen this type of code in a C++ book. #define xxxxx ( || || || )
Can someone tell me? thanks!


But even, if you have to check for something special, these kinds of macros are just bad in my opinion. Just imagine your loop counter is named "J" instead of "I" ... 


