From efe59abf72b21f9a5a5488d6593751577b7a96b4 Mon Sep 17 00:00:00 2001 From: "feliks.pobiedzinski@swmansion.com" Date: Tue, 17 Aug 2021 12:54:10 +0200 Subject: [PATCH] Update docs --- pages/creating_unifex_natives.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/creating_unifex_natives.md b/pages/creating_unifex_natives.md index 3adf048a..a3d52deb 100644 --- a/pages/creating_unifex_natives.md +++ b/pages/creating_unifex_natives.md @@ -80,7 +80,7 @@ UNIFEX_TERM foo(UnifexEnv* env, int num) { return foo_result_ok(env, num); } ``` -For every tuple, that might be returned from our Unifex function (in this case, it is `foo`), there will be generated implementation of result function named `[orginal_function_name]_result_[label]`, where `label` is an atom with type `label` in returned tuple. The type of the first argument of this function will be `UnifexEnv*`, number and types of the rest of the arguments will depend on the number and types of rest of elements in the returned tuple (see the table below). +The provided `foo` implementation returns the passed argument, by using `foo_result_ok`. For every tuple, that might be returned from our Unifex function, there will be generated implementation of result function named `[orginal_function_name]_result_[label]`, where `label` is an atom with type `label` in returned tuple. The type of the first argument of this function will be `UnifexEnv*`, number and types of the rest of the arguments will depend on the number and types of rest of elements in the returned tuple It is a very simple C code that always returns the same number it gets.