]> Kevux Git Server - fll/commit
Bugfix: Incorrect macro definition structure resulting in invalid inverse (!) checks.
authorKevin Day <thekevinday@gmail.com>
Mon, 3 May 2021 02:35:11 +0000 (21:35 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 3 May 2021 02:35:11 +0000 (21:35 -0500)
commit411b5c2a8c3a2613e006219626e952ab1035f166
treee6fa1799f0e294a91072b2045e52d7b7a8071cd6
parent46b3ef2d8bdb6c07e64fdc4fba0a454ead07a009
Bugfix: Incorrect macro definition structure resulting in invalid inverse (!) checks.

I seem to have forgotten to wrap these macro checks in parenthesis.

As a result something like "!macro_f_file_type_is_block()" would expand to "!macro_f_file_type_get(mode) == f_file_type_block".
What it should expand to should be logically equivalent to "macro_f_file_type_get(mode) != f_file_type_block".
The expansion with the parenthesis would be: "!(macro_f_file_type_get(mode) == f_file_type_block)" and that is indeed logically equivalent.
level_0/f_file/c/file-common.h