diff options
Diffstat (limited to 'src/include/openssl/type_check.h')
-rw-r--r-- | src/include/openssl/type_check.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/include/openssl/type_check.h b/src/include/openssl/type_check.h index a6f8284f..da78d70c 100644 --- a/src/include/openssl/type_check.h +++ b/src/include/openssl/type_check.h @@ -64,16 +64,16 @@ extern "C" { #endif -/* This header file contains some common macros for enforcing type checking. - * Several, common OpenSSL structures (i.e. stack and lhash) operate on void - * pointers, but we wish to have type checking when they are used with a - * specific type. */ +// This header file contains some common macros for enforcing type checking. +// Several, common OpenSSL structures (i.e. stack and lhash) operate on void +// pointers, but we wish to have type checking when they are used with a +// specific type. -/* CHECKED_CAST casts |p| from type |from| to type |to|. */ +// CHECKED_CAST casts |p| from type |from| to type |to|. #define CHECKED_CAST(to, from, p) ((to) (1 ? (p) : (from)0)) -/* CHECKED_PTR_OF casts a given pointer to void* and statically checks that it - * was a pointer to |type|. */ +// CHECKED_PTR_OF casts a given pointer to void* and statically checks that it +// was a pointer to |type|. #define CHECKED_PTR_OF(type, p) CHECKED_CAST(void*, type*, (p)) #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L @@ -85,7 +85,7 @@ extern "C" { #if defined(__cplusplus) -} /* extern C */ +} // extern C #endif -#endif /* OPENSSL_HEADER_TYPE_CHECK_H */ +#endif // OPENSSL_HEADER_TYPE_CHECK_H |