Does Clang have an equivalent to GNU GCC's preprocessor assert directive?

Viewed 85

With GNU/GCC there is exists a preprocessor assertion directive feature that takes the form:

#predicate (answer)

See GCC Assertions.

Does the Clang compiler/preprocessor have an equivalent feature?

1 Answers

Does the Clang compiler/preprocessor have an equivalent feature?

No. Use predefined macros specific to the environment, like __linux__ or __X86_64__ etc.

Related