aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/assert.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-05-15 03:09:41 +0000
committerlloyd <[email protected]>2014-05-15 03:09:41 +0000
commit9ac0b0612ea36dd9a2e850745238c20ee6b0444f (patch)
treea1c04fbd0734ad11d86f4553e36e844d016363e6 /src/lib/utils/assert.h
parent318b0e20fa1edd2dc700a01e47d31ebb8c219460 (diff)
VC2013 doesn't support __func__. Github #22
Diffstat (limited to 'src/lib/utils/assert.h')
-rw-r--r--src/lib/utils/assert.h8
1 files changed, 4 insertions, 4 deletions
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<bool>(ptr) == false) \
Botan::assertion_failure(#ptr " is not null", \
"", \
- __func__, \
+ BOTAN_CURRENT_FUNCTION, \
__FILE__, \
__LINE__); \
} while(0)