Fix RIOT port after API update
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "shell.h"
|
#include "shell.h"
|
||||||
#include "jerry.h"
|
#include "jerry-api.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Jerryscript simple test
|
* Jerryscript simple test
|
||||||
@@ -30,11 +30,9 @@ int test_jerry (int argc, char **argv)
|
|||||||
printf ("This test run the following script code: [%s]\n\n", script);
|
printf ("This test run the following script code: [%s]\n\n", script);
|
||||||
|
|
||||||
size_t script_size = strlen ((const char *) script);
|
size_t script_size = strlen ((const char *) script);
|
||||||
jerry_completion_code_t return_code = jerry_run_simple (script,
|
bool ret_value = jerry_run_simple (script, script_size, JERRY_INIT_EMPTY);
|
||||||
script_size,
|
|
||||||
JERRY_FLAG_EMPTY);
|
|
||||||
|
|
||||||
return return_code;
|
return (ret_value ? 1 : 0);
|
||||||
} /* test_jerry */
|
} /* test_jerry */
|
||||||
|
|
||||||
const shell_command_t shell_commands[] = {
|
const shell_command_t shell_commands[] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user