mirror of https://github.com/status-im/evmc.git
Do not pollute the header with examplevm_create()
This commit is contained in:
parent
2783532823
commit
0877e9d9bd
|
@ -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)
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
struct examplevm
|
||||
{
|
||||
struct evm_instance instance;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue