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
@@ -178,7 +178,7 @@ main (int argc,
jerry_completion_code_t ret_code = JERRY_COMPLETION_CODE_OK;
if (!jerry_parse (NULL, source_p, source_size))
if (!jerry_parse (source_p, source_size))
{
/* unhandled SyntaxError */
ret_code = JERRY_COMPLETION_CODE_UNHANDLED_EXCEPTION;
@@ -187,7 +187,7 @@ main (int argc,
{
if ((flags & JERRY_FLAG_PARSE_ONLY) == 0)
{
ret_code = jerry_run (NULL);
ret_code = jerry_run ();
}
}