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

Method CustomGuard

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

Source from the content-addressed store, hash-verified

13 static bool enabled;
14
15 CustomGuard() { enabled = true; }
16 ~CustomGuard() { enabled = false; }
17
18 static const char *report_status() { return enabled ? "guarded" : "unguarded"; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected