Am 04.04.2016 um 20:06 schrieb Sergey Fedorov:
> On 04/04/16 20:50, Stefan Weil wrote:
>> -/* Defining NDEBUG disables assertions (which makes the code faster). */
>> -#if !defined(CONFIG_DEBUG_TCG) && !defined(NDEBUG)
>> -# define NDEBUG
>> +/* Enable TCI assertions only when debugging TCG (and without NDEBUG 
>> defined).
>> + * Without assertions, the interpreter runs much faster. */
>> +#if defined(CONFIG_DEBUG_TCG)
>> +# define tci_assert(cond) assert(cond)
>> +#else
>> +# define tci_assert(cond) (void)0
> 
> Maybe wrap the "(void)0" into parentheses?
> 
> Kind regards,
> Sergey
> 
>>  #endif
> 

Maybe. It's not needed for the current code.
Are there situations where parentheses for this would make a difference?

Stefan

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to