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

Method DependentGuard

tests/test_call_policies.cpp:25–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 static bool enabled;
24
25 DependentGuard() { enabled = CustomGuard::enabled; }
26 ~DependentGuard() { enabled = false; }
27
28 static const char *report_status() { return enabled ? "guarded" : "unguarded"; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected