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 a52634a commit ae8757cCopy full SHA for ae8757c
include/pybind11/detail/common.h
@@ -444,11 +444,16 @@ struct nonsimple_values_and_holders {
444
445
/// The 'instance' type which needs to be standard layout (need to be able to use 'offsetof')
446
struct instance {
447
+#if (PY_MAJOR_VERSION == 3)
448
+ PyException_HEAD
449
+#else
450
PyObject_HEAD
451
// Necessary to support exceptions.
452
PyObject *dict;
453
PyObject *args;
454
PyObject *message;
455
+#endif
456
+
457
/// Storage for pointers and holder; see simple_layout, below, for a description
458
union {
459
void *simple_value_holder[1 + instance_simple_holder_in_ptrs()];
0 commit comments