From 9ac0b0612ea36dd9a2e850745238c20ee6b0444f Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 15 May 2014 03:09:41 +0000 Subject: VC2013 doesn't support __func__. Github #22 --- src/lib/utils/assert.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/utils/assert.h') diff --git a/src/lib/utils/assert.h b/src/lib/utils/assert.h index f62fae63e..6117a460d 100644 --- a/src/lib/utils/assert.h +++ b/src/lib/utils/assert.h @@ -29,7 +29,7 @@ void BOTAN_DLL assertion_failure(const char* expr_str, if(!(expr)) \ Botan::assertion_failure(#expr, \ assertion_made, \ - __func__, \ + BOTAN_CURRENT_FUNCTION, \ __FILE__, \ __LINE__); \ } while(0) @@ -42,7 +42,7 @@ void BOTAN_DLL assertion_failure(const char* expr_str, if((expr1) != (expr2)) \ Botan::assertion_failure(#expr1 " == " #expr2, \ assertion_made, \ - __func__, \ + BOTAN_CURRENT_FUNCTION, \ __FILE__, \ __LINE__); \ } while(0) @@ -55,7 +55,7 @@ void BOTAN_DLL assertion_failure(const char* expr_str, if((expr1) && !(expr2)) \ Botan::assertion_failure(#expr1 " implies " #expr2, \ msg, \ - __func__, \ + BOTAN_CURRENT_FUNCTION, \ __FILE__, \ __LINE__); \ } while(0) @@ -68,7 +68,7 @@ void BOTAN_DLL assertion_failure(const char* expr_str, if(static_cast(ptr) == false) \ Botan::assertion_failure(#ptr " is not null", \ "", \ - __func__, \ + BOTAN_CURRENT_FUNCTION, \ __FILE__, \ __LINE__); \ } while(0) -- cgit v1.2.3