From e70187baccccdefa959fba8e7b81a6781d5f45c5 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 8 May 2019 14:55:08 +0100 Subject: [PATCH] Highlight that destroy/execute/get_capabilities is mandatory --- include/evmc/evmc.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/evmc/evmc.h b/include/evmc/evmc.h index 82b66ec89..408233807 100644 --- a/include/evmc/evmc.h +++ b/include/evmc/evmc.h @@ -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 function and cannot 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 function and cannot be set to NULL. + */ evmc_execute_fn execute; /** @@ -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 function and cannot be set to NULL. */ evmc_get_capabilities_fn get_capabilities;