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 64b21d6 commit 97cedd2Copy full SHA for 97cedd2
include/pybind11/detail/common.h
@@ -415,11 +415,16 @@ struct nonsimple_values_and_holders {
415
416
/// The 'instance' type which needs to be standard layout (need to be able to use 'offsetof')
417
struct instance {
418
+#if (PY_MAJOR_VERSION == 3)
419
+ PyException_HEAD
420
+#else
421
PyObject_HEAD
422
// Necessary to support exceptions.
423
PyObject *dict;
424
PyObject *args;
425
PyObject *message;
426
+#endif
427
+
428
/// Storage for pointers and holder; see simple_layout, below, for a description
429
union {
430
void *simple_value_holder[1 + instance_simple_holder_in_ptrs()];
0 commit comments