Update the webpage (#1941)

* Add new documents about autorelease values and module support

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
Zsolt Borbély
2017-08-01 16:00:13 +02:00
committed by GitHub
parent 5d2b25659d
commit 49c24ca464
7 changed files with 923 additions and 153 deletions
+5 -2
View File
@@ -124,6 +124,8 @@ jerryx_handler_register_global (const jerry_char_t *name_p,
**Example**
[doctest]: # (test="compile")
```c
#include "jerryscript.h"
#include "jerryscript-ext/handler.h"
@@ -139,7 +141,8 @@ static const struct {
{ NULL, NULL }
};
static void register_common_functions ()
static void
register_common_functions (void)
{
jerry_value_t ret = jerry_create_undefined ();
@@ -149,7 +152,7 @@ static void register_common_functions ()
common_functions[i].handler_p);
}
return ret;
jerry_release_value (ret);
}
```