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

Method get_code

tests/test_potentially_slicing_weak_ptr.cpp:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 void set_sp(const std::shared_ptr<VB> &sp_) { sp = sp_; }
84
85 int get_code() const {
86 if (!sp) {
87 return -888;
88 }
89 return sp->get_code();
90 }
91
92 const char *get_trampoline_state() const { return determine_trampoline_state(sp); }
93

Callers 1

get_codeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected