Attribute Macro panda_macros::before_cpu_exec_exit[][src]

#[before_cpu_exec_exit]
Expand description

(Callback) Called before cpu_exec calls cpu_exec_exit function.

Callback ID: PANDA_CB_BEFORE_CPU_EXEC_EXIT

   Arguments:
    CPUState *env: the current CPU state
    bool ranBlock: true if ran a block since previous cpu_exec_enter

   Helper call location: cpu-exec.c

   Return value:
    none

Callback arguments: (&mut CPUState, bool, )

Example

use panda::prelude::*;

#[panda::before_cpu_exec_exit]
fn callback(_: &mut CPUState, _: bool, ) {
    // do stuff
}