Re:Oops! We Automated Bullshit
by yorwba on Friday November 17, 2023 @09:05AM
(#38303698)
Where's the problem?
[ Parent
| on HN ]
the preprocessor isn't evaluating it, it's just pasting the tokens in
the preprocessor doesn't know anything about structs or types
I was curious, too. Looked it up. Still don't understand tho.
>The sizeof in C is an operator, and all operators have been implemented at compiler level; therefore, you cannot implement sizeof operator in standard C as a macro or function. You can do a trick to get the size of a variable by pointer arithmetic.