Introducing ERR_SYSCALL that should be used on failures during syscalls execution.
This commit is contained in:
@@ -54,6 +54,7 @@ typedef enum
|
||||
ERR_STRING = -8,
|
||||
ERR_PARSER = -9,
|
||||
ERR_MEMORY = -10,
|
||||
ERR_SYSCALL = -11,
|
||||
ERR_GENERAL = -255
|
||||
} jerry_status_t;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user