Initial version of Embedded API.

This commit is contained in:
Ruben Ayrapetyan
2015-02-11 16:12:21 +03:00
parent ccc0453f34
commit 35fa39ceb8
6 changed files with 185 additions and 37 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
* and call assertion fail handler.
*/
void __noreturn
jerry_exit (jerry_status_t code) /**< status code */
jerry_exit (jerry_err_t code) /**< status code */
{
#ifndef JERRY_NDEBUG
if (code != ERR_OK)
+4 -2
View File
@@ -44,6 +44,8 @@
/**
* Error codes
*
* TODO: Move to jerry.h
*/
typedef enum
{
@@ -63,7 +65,7 @@ typedef enum
ERR_UNIMPLEMENTED_CASE = -118,
ERR_FAILED_ASSERTION_IN_SCRIPT = -119,
ERR_FAILED_INTERNAL_ASSERTION = -120,
} jerry_status_t;
} jerry_err_t;
/**
* Asserts
@@ -173,7 +175,7 @@ template<typename... values> extern void jerry_ref_unused_variables (const value
/**
* Exit
*/
extern void __noreturn jerry_exit (jerry_status_t code);
extern void __noreturn jerry_exit (jerry_err_t code);
/**
* sizeof, offsetof, ...