[][src]Attribute Macro panda::before_block_exec

#[before_block_exec]

(Callback) Called before execution of every basic block.

Callback ID: PANDA_CB_BEFORE_BLOCK_EXEC

   Arguments:
    CPUState *env:        the current CPU state
    TranslationBlock *tb: the TB we are about to execute

   Helper call location: cpu-exec.c

   Return value:
    none

Callback arguments: (&mut CPUState, &mut TranslationBlock, )

Example

use panda::prelude::*;

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