[issue25558] Use static asserts in C code

STINNER Victor report at bugs.python.org
Thu Nov 5 11:53:35 EST 2015


STINNER Victor added the comment:

+    (void)Py_BUILD_ASSERT_EXPR(INT_MAX <= _PyTime_MAX / SEC_TO_NS);

Hum, maybe the existing macro should be renamed to Py_BUILD_ASSERT_EXPR and a new Py_BUILD_ASSERT_EXPR macro should add the (void) to ignore the result? It would avoid to have to repeat (void) everywhere.

What do you think?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25558>
_______________________________________


More information about the Python-bugs-list mailing list