update comments

This commit is contained in:
vms 2019-06-19 17:22:37 +03:00
parent 97762f0182
commit 0ee0813e78
2 changed files with 7 additions and 6 deletions

View File

@ -4,12 +4,12 @@
#include <stddef.h> // for size_t #include <stddef.h> // for size_t
/** /**
* Allocates a memory region of given size. * Allocates a memory region of a given size.
* *
* Used by Wasm VM for byte array passing. Should be exported from module. * Used by Wasm VM for byte array passing. Should be exported from module.
* *
* @param size a size of needed memory region. * @param size a size of allocated memory region.
* @return a pointer to allocated memory region. * @return a pointer to the allocated memory region.
*/ */
void *allocate(size_t size); void *allocate(size_t size);
@ -19,8 +19,8 @@ void *allocate(size_t size);
* Used by Wasm VM for freeing previous memory allocated by `allocate` function. * Used by Wasm VM for freeing previous memory allocated by `allocate` function.
* Should be exported from module. * Should be exported from module.
* *
* @param ptr the pointer to the previously allocated memory region. * @param ptr a pointer to the previously allocated memory region.
* @param size the size of the previously allocated memory region. * @param size a size of the previously allocated memory region.
*/ */
void deallocate(void *ptr, size_t size); void deallocate(void *ptr, size_t size);

View File

@ -4,7 +4,8 @@
/** /**
* Writes provided string to Wasm VM logger. * Writes provided string to Wasm VM logger.
* *
* @param log_message a message that should be logged. * @param str a pointer to a message that should be logged.
* @param len a size of a message that should be logged.
*/ */
void wasm_log(const char *str, int len); void wasm_log(const char *str, int len);