MCPcopy Create free account
hub / github.com/covscript/covscript / replace_pending

Method replace_pending

sources/debugger.cpp:194–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 }
193
194 void replace_pending(const std::string &name, const cs::var &function)
195 {
196 if (m_pending.count(name) > 0) {
197 const cs::callable::function_type &target = function.const_val<cs::callable>().get_raw_data();
198 target.target<cs::function_ptr>()->fptr->set_debugger_state(true);
199 auto key = m_pending.find(name);
200 if (key->second.second) {
201 for (auto &it : m_breakpoints) {
202 if (it.id == key->second.first) {
203 it.data.emplace<cs::var>(function);
204 key->second.second = false;
205 break;
206 }
207 }
208 }
209 }
210 }
211
212 void remove(std::size_t id)
213 {

Callers 1

Calls 1

set_debugger_stateMethod · 0.80

Tested by

no test coverage detected