We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23e7030 commit 8ae8dd8Copy full SHA for 8ae8dd8
include/pybind11/detail/common.h
@@ -408,11 +408,16 @@ struct nonsimple_values_and_holders {
408
409
/// The 'instance' type which needs to be standard layout (need to be able to use 'offsetof')
410
struct instance {
411
+#if (PY_MAJOR_VERSION == 3)
412
+ PyException_HEAD
413
+#else
414
PyObject_HEAD
415
// Necessary to support exceptions.
416
PyObject *dict;
417
PyObject *args;
418
PyObject *message;
419
+#endif
420
+
421
/// Storage for pointers and holder; see simple_layout, below, for a description
422
union {
423
void *simple_value_holder[1 + instance_simple_holder_in_ptrs()];
0 commit comments