Skip to content

Commit 0f17a14

Browse files
authored
Add comments to global type function declarations (#3431)
1 parent b1529bc commit 0f17a14

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

core/iwasm/include/wasm_export.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,9 +1316,23 @@ WASM_RUNTIME_API_EXTERN wasm_valkind_t
13161316
wasm_func_type_get_result_valkind(wasm_func_type_t const func_type,
13171317
uint32_t result_index);
13181318

1319+
/**
1320+
* Get the kind for a global type
1321+
*
1322+
* @param global_type the global type
1323+
*
1324+
* @return the kind of the global
1325+
*/
13191326
WASM_RUNTIME_API_EXTERN wasm_valkind_t
13201327
wasm_global_type_get_valkind(const wasm_global_type_t global_type);
13211328

1329+
/**
1330+
* Get the mutability for a global type
1331+
*
1332+
* @param global_type the global type
1333+
*
1334+
* @return true if mutable, false otherwise
1335+
*/
13221336
WASM_RUNTIME_API_EXTERN bool
13231337
wasm_global_type_get_mutable(const wasm_global_type_t global_type);
13241338

0 commit comments

Comments
 (0)