Update pages

This commit is contained in:
Evgeny Gavrin
2015-06-26 17:39:22 +03:00
parent 40d0d1b969
commit faefc3e5e3
3 changed files with 32 additions and 32 deletions
+6 -6
View File
@@ -10,7 +10,7 @@ This guide is intended to introduce you to JerryScript embedding API through cre
## Step 1. Execute JavaScript from your application
{% highlight cpp linenos=table %}
{% highlight cpp %}
#include <string.h>
#include "jerry.h"
@@ -40,7 +40,7 @@ Here we perform the same actions, as `jerry_run_simple`, while splitting into se
- engine cleanup
{% highlight cpp linenos=table %}
{% highlight cpp %}
#include <string.h>
#include "jerry.h"
@@ -66,7 +66,7 @@ While code became a bit more complex, the change introduced possibilities to int
## Step 3. Execution in 'eval'-mode
{% highlight cpp linenos=table %}
{% highlight cpp %}
#include <string.h>
#include "jerry.h"
@@ -101,7 +101,7 @@ This way, we execute two independent script parts in one execution environment.
## Step 4. Interaction with JavaScript environment
{% highlight cpp linenos=table %}
{% highlight cpp %}
#include <string.h>
#include "jerry.h"
@@ -170,7 +170,7 @@ Pointers to strings / objects and values should be released just when become unn
The following example function would output a JavaScript value:
{% highlight cpp linenos=table %}
{% highlight cpp %}
static void
print_value (const jerry_api_value_t * value_p)
{
@@ -240,7 +240,7 @@ Shell operation can be described with following loop:
- print result of eval;
- loop.
{% highlight cpp linenos=table %}
{% highlight cpp %}
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>