Botan  1.10.9
Namespaces | Macros | Functions
assert.h File Reference

Go to the source code of this file.

Namespaces

 Botan
 

Macros

#define BOTAN_ASSERT(expr, msg)
 
#define BOTAN_ASSERT_EQUAL(value1, value2, msg)
 
#define BOTAN_ASSERT_FUNCTION   ((const char*)0)
 

Functions

void Botan::assertion_failure (const char *expr_str, const char *msg, const char *func, const char *file, int line)
 

Macro Definition Documentation

#define BOTAN_ASSERT (   expr,
  msg 
)
Value:
do { \
if(!(expr)) \
msg, \
__FILE__, \
__LINE__); \
} while(0)
#define BOTAN_ASSERT_FUNCTION
Definition: assert.h:54
void assertion_failure(const char *expr_str, const char *msg, const char *func, const char *file, int line)
Definition: assert.cpp:14

Definition at line 19 of file assert.h.

Referenced by Botan::Output_Buffers::add(), Botan::ECDH_KA_Operation::agree(), Botan::RSA_Private_Operation::decrypt(), Botan::EC_PrivateKey::EC_PrivateKey(), Botan::GOST_3410_PublicKey::GOST_3410_PublicKey(), Botan::GOST_3410_Signature_Operation::sign(), and Botan::PK_Signer::signature().

#define BOTAN_ASSERT_EQUAL (   value1,
  value2,
  msg 
)
Value:
do { \
if(value1 != value2) \
Botan::assertion_failure(#value1 " == " #value2, \
msg, \
__FILE__, \
__LINE__); \
} while(0)
#define BOTAN_ASSERT_FUNCTION
Definition: assert.h:54
void assertion_failure(const char *expr_str, const char *msg, const char *func, const char *file, int line)
Definition: assert.cpp:14

Definition at line 29 of file assert.h.

Referenced by Botan::base64_encode(), and Botan::PKCS7_Padding::pad().

#define BOTAN_ASSERT_FUNCTION   ((const char*)0)

Definition at line 54 of file assert.h.