MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / disable

Method disable

src/function_context.py:481–494  ·  view source on GitHub ↗

Mark the source function as absent (inlined / ifdeffed out).

(self)

Source from the content-addressed store, hash-verified

479
480 # Overridden base function
481 def disable(self):
482 """Mark the source function as absent (inlined / ifdeffed out)."""
483 # singleton lock
484 if not self.exists:
485 return
486 # can now safely continue
487 self.exists = False
488 # keep on recursively with our external functions
489 for ext in self.externals:
490 ext.removeXref(self)
491 # mark that I'm no longer a valid collision candidate
492 for collision_candidate in self.collision_candidates:
493 collision_candidate.collision_candidates.remove(self)
494 self.collision_candidates = []
495
496 def recordUnknown(self, unknown, is_fptr=False):
497 """Record a function call to an unknown function.

Callers

nothing calls this directly

Calls 2

removeXrefMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected