From fb7bef063f982495e2b23a115c34ead37b449483 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Mon, 26 Feb 2024 14:53:17 -0500 Subject: fix plugincommand docs --- python/highlevelil.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/highlevelil.py') diff --git a/python/highlevelil.py b/python/highlevelil.py index 60addda5..c9126eb5 100644 --- a/python/highlevelil.py +++ b/python/highlevelil.py @@ -816,6 +816,7 @@ class HighLevelILInstruction(BaseILInstruction): :param HighLevelILVisitorCallback cb: Callback function that takes the name of the operand, the operand, operand type, and parent instruction :return: True if all instructions were visited, False if the callback returned False + """ if cb(name, self, "HighLevelILInstruction", parent) == False: return False @@ -861,6 +862,7 @@ class HighLevelILInstruction(BaseILInstruction): :param HighLevelILVisitorCallback cb: Callback function that takes the name of the operand, the operand, operand type, and parent instruction :return: True if all instructions were visited, False if the callback returned False + :Example: >>> def visitor(_a, inst, _c, _d) -> bool: >>> if isinstance(inst, Constant): -- cgit v1.3.1