MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / execute

Method execute

python/scriptingprovider.py:72–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70 self.callback = ctypes.CFUNCTYPE(None, ctypes.c_void_p)(lambda ctxt: self.execute())
71
72 def execute(self):
73 old_interpreter = None
74 if hasattr(PythonScriptingInstance._interpreter, "value"):
75 old_interpreter = PythonScriptingInstance._interpreter.value
76 PythonScriptingInstance._interpreter.value = self.interpreter
77 try:
78 self.func()
79 finally:
80 PythonScriptingInstance._interpreter.value = old_interpreter
81 self.__class__._actions.remove(self)
82
83
84class ScriptingOutputListener:

Calls 2

funcMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected