4 ms·
You have missed one important thing: every passing assertion will define a single extern function pointer with the same signature, so multiple `_Static_assert`
by lifthrasiir 2y ago
You have missed one important thing: every passing assertion will define a single extern function pointer with the same signature, so multiple `_Static_assert` invocations can coexist in a single scope. An extern definition doesn't have to be a function pointer by the way, I guess it helped a linker to have an easier time when removing unused symbols.
- fuhsnn 2y agoOops too late to edit, that's really a function prototype. So it wouldn't take storage space or affect symbol unless the user naughtily calls the __Static_assert_function.