Interface jerry_api_eval for performing eval operation.

This commit is contained in:
Ruben Ayrapetyan
2015-04-16 20:01:24 +03:00
parent 3899fe9096
commit cde7805356
3 changed files with 80 additions and 12 deletions
+3 -12
View File
@@ -19,12 +19,13 @@
#include <stddef.h>
#include <stdint.h>
#include "jerry-api.h"
#include "jerry-extension.h"
/** \addtogroup jerry Jerry engine interface
* @{
*/
#include "jerry-extension.h"
/**
* Jerry flags
*/
@@ -37,16 +38,6 @@ typedef uint32_t jerry_flag_t;
#define JERRY_FLAG_PARSE_ONLY (1 << 2) /**< parse only, prevents script execution (only for testing)
* FIXME: Remove. */
/**
* Jerry completion codes
*/
typedef enum
{
JERRY_COMPLETION_CODE_OK = 0, /**< successful completion */
JERRY_COMPLETION_CODE_UNHANDLED_EXCEPTION = 1, /**< exception occured and it was not handled */
JERRY_COMPLETION_CODE_FAILED_ASSERTION_IN_SCRIPT = 2 /**< assertion, performed by script, failed */
} jerry_completion_code_t;
/**
* Error codes
*/