This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients python-dev, serhiy.storchaka, skrah, vstinner
Date 2015-11-07.14:18:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446905933.39.0.936910162683.issue25558@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2015-11-07 14:18:53serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, skrah, python-dev
2015-11-07 14:18:53serhiy.storchakasetmessageid: <1446905933.39.0.936910162683.issue25558@psf.upfronthosting.co.za>
2015-11-07 14:18:53serhiy.storchakalinkissue25558 messages
2015-11-07 14:18:53serhiy.storchakacreate