evmc/examples/use_evmc_in_cmake/use_evmc_in_cmake.c

15 lines
405 B
C
Raw Normal View History

2018-06-19 11:38:08 +02:00
/* EVMC: Ethereum Client-VM Connector API.
2018-08-21 09:44:18 +02:00
* Copyright 2018 The EVMC Authors.
* Licensed under the Apache License, Version 2.0. See the LICENSE file.
2018-06-19 11:38:08 +02:00
*/
/** This example shows how to use evmc INTERFACE library from evmc CMake package. */
#include <evmc/evmc.h>
int main()
{
struct evmc_instance instance = {.abi_version = EVMC_ABI_VERSION};
return instance.abi_version - EVMC_ABI_VERSION;
}