Serhiy Storchaka added the comment: A library can follow the example in the comment.
#define foo_to_char(foo) \ ((char *)(foo) \ + Py_BUILD_ASSERT_EXPR(offsetof(struct foo, string) == 0)) ---------- _______________________________________ 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