MCPcopy Create free account
hub / github.com/pybind/pybind11 / print_destroyed

Function print_destroyed

tests/constructor_stats.h:314–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313template <class T, typename... Values>
314void print_destroyed(T *inst, Values &&...values) { // Prints but doesn't store given values
315 /*
316 * On GraalPy, destructors can trigger anywhere and this can cause random
317 * failures in unrelated tests.
318 */
319#if !defined(GRAALVM_PYTHON)
320 print_constr_details(inst, "destroyed", values...);
321 track_destroyed(inst);
322#else
323 py::detail::silence_unused_warnings(inst, values...);
324#endif
325}
326template <class T, typename... Values>
327void print_values(T *inst, Values &&...values) {
328 print_constr_details(inst, ":", values...);

Callers 15

~Vector2Method · 0.85
~SequenceMethod · 0.85
~ExampleVirtMethod · 0.85
~NonCopyableMethod · 0.85
~MovableMethod · 0.85
~PlaceholderMethod · 0.85
~ExampleMandAMethod · 0.85
~DynamicClassMethod · 0.85
~PayloadMethod · 0.85
~MatrixMethod · 0.85
~DiscontiguousMatrixMethod · 0.85
~MoveOnlyIntMethod · 0.85

Calls 3

print_constr_detailsFunction · 0.85
track_destroyedFunction · 0.85
silence_unused_warningsFunction · 0.85

Tested by 15

~Vector2Method · 0.68
~SequenceMethod · 0.68
~ExampleVirtMethod · 0.68
~NonCopyableMethod · 0.68
~MovableMethod · 0.68
~PlaceholderMethod · 0.68
~ExampleMandAMethod · 0.68
~DynamicClassMethod · 0.68
~PayloadMethod · 0.68
~MatrixMethod · 0.68
~DiscontiguousMatrixMethod · 0.68
~MoveOnlyIntMethod · 0.68