Serhiy Storchaka added the comment:

> By the way, I don't know what happens if you pass a variable to 
> Py_BUILD_ASSERT_EXPR() rather than a constant.

If the compiler can't calculate it at compile time (e.g. int_var <= INT_MAX), 
your are out of luck.

> Maybe we could use __builtin_constant_p() on GCC?

Don't know if it will help.

----------
stage: patch review -> resolved

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25558>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to