I’m no C expert, so take this with a grain of salt, but wouldn’t any reasonable optimizing compiler remove the constant check at compile-time?
Of course, this is not guaranteed and depends on the compiler flags, so preproc should be preferred if compile-time is desired.
Definitely agree with the sentiment in the comment.
Though, how ironic is it that this post might as well have been generated by a bot?
Literally a screenshot of a comment without attribution and with an account 2 hours old…