On Sat, Jun 7, 2014 at 10:00 PM, Jeremy Farrell <[email protected]> wrote: > From: Mike Bland [mailto:[email protected]] > Sent: Saturday, June 07, 2014 6:36 PM >> >> Just created https://github.com/openssl/openssl/pull/126 with what I >> hope is a workable solution. > > 104 +#if __STDC_VERSION__ < 199901L > 105 +#define testutil_stringify_helper(s) #s > 106 +#define testutil_stringify(s) testutil_stringify_helper(s) > 107 +#define TEST_CASE_NAME __FILE__ ":" testutil_stringify(__LINE__) > 108 +#elif defined(_MSC_VER) > 109 +#define TEST_CASE_NAME __FUNCTION__ > 110 +#else > 111 +#define TEST_CASE_NAME __func__ > 112 +#endif /* __STDC_VERSION */ > > The _MSC_VER block will never be used since MSC is does not claim C99 > conformance. > > #if __STDC_VERSION__ < 199901L > #if defined(_MSC_VER) > #define TEST_CASE_NAME __FUNCTION__ > #else > #define testutil_stringify_helper(s) #s > #define testutil_stringify(s) testutil_stringify_helper(s) > #define TEST_CASE_NAME __FILE__ ":" testutil_stringify(__LINE__) > #endif /* _MSC_VER */ > #else > #define TEST_CASE_NAME __func__ > #endif /* __STDC_VERSION__ */ > > or similar should do the trick.
Thanks for that, Jeremy. Done. Mike ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
