Skip to content

Commit

Permalink
Highlight that destroy/execute/get_capabilities is mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
axic authored and chfast committed May 9, 2019
1 parent cbe3257 commit 09f8a02
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -946,10 +946,18 @@ struct evmc_instance
*/
const char* version;

/** Pointer to function destroying the EVM instance. */
/**
* Pointer to function destroying the EVM instance.
*
* This is a mandatory method and MUST NOT be set to NULL.
*/
evmc_destroy_fn destroy;

/** Pointer to function executing a code by the EVM instance. */
/**
* Pointer to function executing a code by the EVM instance.
*
* This is a mandatory method and MUST NOT be set to NULL.
*/
evmc_execute_fn execute;

/**
Expand All @@ -959,6 +967,8 @@ struct evmc_instance
*
* A Client SHOULD only rely on the value returned here if it has queried it after
* it has called set_option.
*
* This is a mandatory method and MUST NOT be set to NULL.
*/
evmc_get_capabilities_fn get_capabilities;

Expand Down

0 comments on commit 09f8a02

Please sign in to comment.