Commit da37e9e
committed
Avoid evaluating the sizeof in C preprocessor
The C preprocessor operates purely on text, substituting macros and
evaluating simple arithmetic expressions involving literal constants. It
does not understand types, so it cannot evaluate operators like sizeof
that require type information and compile-time type checking.
Change-Id: Id8b453db78571d67a8b7f95b240b71df212d77961 parent 3adba58 commit da37e9e
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
| 769 | + | |
| 770 | + | |
773 | 771 | | |
774 | 772 | | |
775 | 773 | | |
776 | 774 | | |
777 | | - | |
| 775 | + | |
778 | 776 | | |
779 | 777 | | |
780 | 778 | | |
| |||
0 commit comments