Removing contexts arguments from Jerry API; introducing jerry_push_ctx and jerry_pop_ctx interfaces; putting context-related API part under #ifdef CONFIG_JERRY_ENABLE_CONTEXTS (supposed to be implemented later, when becomes necessary).

This commit is contained in:
Ruben Ayrapetyan
2015-04-07 21:08:55 +03:00
parent 7c67606b00
commit 36424c0fd2
4 changed files with 74 additions and 48 deletions
+2 -2
View File
@@ -144,10 +144,10 @@ main (void)
jerry_api_value_t res, args [2];
char buffer [32];
is_ok = jerry_parse (NULL, test_source, strlen (test_source));
is_ok = jerry_parse (test_source, strlen (test_source));
assert (is_ok);
is_ok = (jerry_run (NULL) == JERRY_COMPLETION_CODE_OK);
is_ok = (jerry_run () == JERRY_COMPLETION_CODE_OK);
assert (is_ok);
global_obj_p = jerry_api_get_global ();