[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
Допустим, в файле описаний:
#define F_SAVE 0x20
#define SET_SAVE sys_flags |= F_SAVE
#define RESET_SAVE sys_flags &= ~F_SAVE
#define SAVE (sys_flags & F_SAVE) // Ставим скобки!
В программе:
if(SAVE) { // Тут со скобками или без - один фиг
....
}
if(!SAVE) { // А тут скобки пригодятся
....
}
Поэтому лучше пусть будут.
Аминь.
E-mail: info@telesys.ru