mirror of
https://github.com/status-im/evmc.git
synced 2025-02-23 16:38:06 +00:00
Add evmc_set_tracer helper
This commit is contained in:
parent
3730cfc6a8
commit
9dd6af0849
@ -41,6 +41,19 @@ static inline int evmc_set_option(struct evmc_instance* instance,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the tracer callback for the VM instance, if the feature is supported by the VM.
|
||||
*
|
||||
* @see evmc_set_tracer_fn
|
||||
*/
|
||||
static inline void evmc_set_tracer(struct evmc_instance* instance,
|
||||
evmc_trace_callback callback,
|
||||
struct evmc_tracer_context* context)
|
||||
{
|
||||
if (instance->set_tracer)
|
||||
instance->set_tracer(instance, callback, context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes code in the VM instance.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user