MCPcopy Create free account
hub / github.com/Norbyte/ositools / TryAddAdapter

Method TryAddAdapter

OsiInterface/Debugger.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 void DebugAdapterMap::TryAddAdapter(Adapter * adapter)
43 {
44 if (adapter->Constants.Data.Items.Size > 0) return;
45
46 auto varMap = adapter->ColumnToVarMaps.Start;
47 auto varEnd = adapter->ColumnToVarMaps.Start + adapter->VarToColumnMapCount;
48 int8_t varIdx = 0;
49 while (varMap < varEnd) {
50 if (varIdx++ != *varMap++) return;
51 }
52
53 adapters_[(uint8_t)adapter->VarToColumnMapCount] = adapter;
54 }
55
56 RuleActionMap::RuleActionMap(OsirisStaticGlobals const & globals)
57 : globals_(globals)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected