Introducing ERR_SYSCALL that should be used on failures during syscalls execution.

This commit is contained in:
Ruben Ayrapetyan
2014-07-31 22:31:27 +04:00
parent 5c72a30228
commit 779fe64161
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -54,6 +54,7 @@ typedef enum
ERR_STRING = -8,
ERR_PARSER = -9,
ERR_MEMORY = -10,
ERR_SYSCALL = -11,
ERR_GENERAL = -255
} jerry_status_t;
+3
View File
@@ -69,6 +69,9 @@ jerry_exit( jerry_status_t code) /**< status code */
case ERR_MEMORY:
__printf("ERR_MEMORY\n");
break;
case ERR_SYSCALL:
JERRY_UNREACHABLE();
break;
case ERR_GENERAL:
__printf("ERR_GENERAL\n");
break;