mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-22 20:21:10 +01:00
For optional functions, we introduce an extra macro to tell if the function is omitted. As the C preprocessor doesn't directly support comparing strings, testing if the _FUNC macro is defined to NULL isn't obvious. One could probably play tricks to avoid the need for _OMIT macros, but the small amount of (entirely local) duplication here is probably a lesser evil than extra preprocessor complexity.