Do not pollute the header with examplevm_create()

This commit is contained in:
Alex Beregszaszi 2018-01-24 22:38:17 +00:00
parent 2783532823
commit 0877e9d9bd
3 changed files with 6 additions and 3 deletions

View File

@ -1,9 +1,12 @@
#include <evm.h>
#include <inttypes.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "evm.h"
/// Prototype from examplevm.c
struct evm_instance* examplevm_create(void);
struct evm_uint256be balance(struct evm_context* context,
const struct evm_address* address)

View File

@ -5,7 +5,6 @@
#include <stdlib.h>
#include <string.h>
struct examplevm
{
struct evm_instance instance;

View File

@ -519,7 +519,8 @@ struct evm_instance {
/// The function SHOULD be named `<vm-name>_create(void)`.
///
/// @return EVM instance or NULL indicating instance creation failure.
struct evm_instance* examplevm_create(void);
///
/// struct evm_instance* examplevm_create(void);
#if __cplusplus