Ejemplo n.º 1
0
def remove_trigger(handle):
    """ Remove a trigger from a given callback.

        Triggers are C/C++ plugins with a defined entry point that will get called just before a given callback,
        in such a way that the trigger can decide whether to pass the event to the python callback function or
        to return immediately to the emulation routine.
        In many cases this approach allows to perform certain fast computations and either reduce the number of calls
        to python code or even avoid them. This is strongly benefitial for callbacks that get triggered frequently
        such as memory read/write or instruction execution, given that the python code is heavier than native
        C/C++ code. Triggers can also compute values that can be read from the python callback function, and can
        also read values set by the python callback function.

        :param handle: Handle of the callback from which we want to remove the trigger.
        :type handle: int

        :return: None
        :rtype: None
    """
    import c_api
    return c_api.remove_trigger(handle)
Ejemplo n.º 2
0
def remove_trigger(handle):
    """ Remove a trigger from a given callback.

        Triggers are C/C++ plugins with a defined entry point that will get called just before a given callback,
        in such a way that the trigger can decide whether to pass the event to the python callback function or
        to return immediately to the emulation routine.
        In many cases this approach allows to perform certain fast computations and either reduce the number of calls
        to python code or even avoid them. This is strongly benefitial for callbacks that get triggered frequently
        such as memory read/write or instruction execution, given that the python code is heavier than native
        C/C++ code. Triggers can also compute values that can be read from the python callback function, and can
        also read values set by the python callback function.

        :param handle: Handle of the callback from which we want to remove the trigger.
        :type handle: int

        :return: None
        :rtype: None
    """
    import c_api
    return c_api.remove_trigger(handle)