Move some macros from include/openssl/opensslconf.h.in, add OPENSSL_FUNC
authorRichard Levitte <levitte@openssl.org>
Wed, 24 Jul 2019 10:53:36 +0000 (12:53 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 31 Jul 2019 04:42:11 +0000 (06:42 +0200)
commite039ca38c8d77f1e2f182123727c884aaf2d683d
tree76e6ae1e760d4747a0291696de06e6484d51d641
parent35f6fe7ac4fbde98d4fd6af968dfe320011bbe1e
Move some macros from include/openssl/opensslconf.h.in, add OPENSSL_FUNC

New header file, include/openssl/macros.h, which contains diverse
useful macros that we use elsewhere.

We also add the new macro OPENSSL_FUNC, which is an alias for
__FUNC__, __FUNCTION__, __FUNCSIG or __func__, depending on what the
compiler supports.  In the worst case, it's an alias for the string
"(unknown function)".

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9452)
include/openssl/macros.h [new file with mode: 0644]
include/openssl/opensslconf.h.in