mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 08:58:24 +00:00
Avoid stringifying condition too early
It's better if the macro receives the condition as an expression rather than a string - that way it can choose to use it as is or stringify it. Also, the documentation states that the parameter is an expression, not a string.
This commit is contained in:
parent
44c5d58d05
commit
0e17cc93c6
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ void mbedtls_param_failed( const char *failure_condition,
|
|||
do { \
|
||||
if( !(cond) ) \
|
||||
{ \
|
||||
MBEDTLS_PARAM_FAILED( #cond ); \
|
||||
MBEDTLS_PARAM_FAILED( cond ); \
|
||||
return( ret ); \
|
||||
} \
|
||||
} while( 0 )
|
||||
|
@ -97,7 +97,7 @@ void mbedtls_param_failed( const char *failure_condition,
|
|||
do { \
|
||||
if( !(cond) ) \
|
||||
{ \
|
||||
MBEDTLS_PARAM_FAILED( #cond ); \
|
||||
MBEDTLS_PARAM_FAILED( cond ); \
|
||||
return; \
|
||||
} \
|
||||
} while( 0 )
|
||||
|
|
Loading…
Reference in a new issue