2018-06-19 09:38:08 +00:00
|
|
|
/* EVMC: Ethereum Client-VM Connector API.
|
2019-04-24 14:12:13 +00:00
|
|
|
* Copyright 2018-2019 The EVMC Authors.
|
|
|
|
* Licensed under the Apache License, Version 2.0.
|
2018-06-19 09:38:08 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** This example shows how to use evmc INTERFACE library from evmc CMake package. */
|
|
|
|
|
|
|
|
#include <evmc/evmc.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2019-09-24 21:59:08 +00:00
|
|
|
struct evmc_vm vm = {.abi_version = EVMC_ABI_VERSION};
|
|
|
|
return vm.abi_version - EVMC_ABI_VERSION;
|
2018-06-19 09:38:08 +00:00
|
|
|
}
|