mirror of https://github.com/status-im/evmc.git
Add evmc_instance_name/version into helpers
This commit is contained in:
parent
048152a1bf
commit
609e4ee3f7
|
@ -18,13 +18,29 @@
|
|||
#include <evmc/evmc.h>
|
||||
|
||||
/**
|
||||
* Returns true if the instance has a compatible ABI version.
|
||||
* Returns true if the VM instance has a compatible ABI version.
|
||||
*/
|
||||
static inline int evmc_is_abi_compatible(struct evmc_instance *instance)
|
||||
{
|
||||
return instance->abi_version == EVMC_ABI_VERSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the VM instance.
|
||||
*/
|
||||
static inline const char* evmc_instance_name(struct evmc_instance *instance)
|
||||
{
|
||||
return instance->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the version of the VM instance.
|
||||
*/
|
||||
static inline const char* evmc_instance_version(struct evmc_instance *instance)
|
||||
{
|
||||
return instance->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroys the VM instance.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue