Created
July 10, 2018 06:22
-
-
Save loslch/32e911a6ee950711e358f92012cbf86c to your computer and use it in GitHub Desktop.
Static Assert in C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define STATIC_ASSERT(e) \ | |
typedef char __static_assert[(e) ? 1 : -1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment