Update the webpage (#1593)
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
+8
-8
@@ -15,7 +15,7 @@ This guide is intended to introduce you to JerryScript embedding API through cre
|
||||
|
||||
```c
|
||||
#include <string.h>
|
||||
#include "jerry-api.h"
|
||||
#include "jerryscript.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
@@ -47,7 +47,7 @@ Here we perform the same actions, as `jerry_run_simple`, while splitting into se
|
||||
|
||||
```c
|
||||
#include <string.h>
|
||||
#include "jerry-api.h"
|
||||
#include "jerryscript.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
@@ -86,7 +86,7 @@ Our code is more complex now, but it introduces possibilities to interact with J
|
||||
|
||||
```c
|
||||
#include <string.h>
|
||||
#include "jerry-api.h"
|
||||
#include "jerryscript.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
@@ -128,7 +128,7 @@ This way, we execute two independent script parts in one execution environment.
|
||||
|
||||
```c
|
||||
#include <string.h>
|
||||
#include "jerry-api.h"
|
||||
#include "jerryscript.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[]) {
|
||||
@@ -185,7 +185,7 @@ The following example function will output a JavaScript value:
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "jerry-api.h"
|
||||
#include "jerryscript.h"
|
||||
#include "jerry-port.h"
|
||||
|
||||
static void
|
||||
@@ -255,7 +255,7 @@ Shell operation can be described with the following loop:
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "jerry-api.h"
|
||||
#include "jerryscript.h"
|
||||
#include "jerry-port.h"
|
||||
|
||||
static void print_value (const jerry_value_t);
|
||||
@@ -333,7 +333,7 @@ In this example we demonstrate how to use native function and structures in Java
|
||||
|
||||
```c
|
||||
#include <string.h>
|
||||
#include "jerry-api.h"
|
||||
#include "jerryscript.h"
|
||||
|
||||
struct my_struct
|
||||
{
|
||||
@@ -419,7 +419,7 @@ Here we create a JS Object with `jerry_eval`, then extend it with a native funct
|
||||
|
||||
```c
|
||||
#include <string.h>
|
||||
#include "jerry-api.h"
|
||||
#include "jerryscript.h"
|
||||
|
||||
/**
|
||||
* Add param to 'this.x'
|
||||
|
||||
Reference in New Issue
Block a user