evmc/examples/use_instructions_in_cmake/use_instructions_in_cmake.c

14 lines
374 B
C
Raw Normal View History

2018-06-19 11:38:08 +02:00
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
2018-06-19 11:38:08 +02:00
*/
/** This example shows how to use evmc::instructions library from evmc CMake package. */
#include <evmc/instructions.h>
int main()
{
return evmc_get_instruction_metrics_table(EVMC_BYZANTIUM)[OP_STOP].num_stack_returned_items;
2018-06-19 11:38:08 +02:00
}