From 779fe641610f0c1a26916587f22fee7dc5265a11 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Thu, 31 Jul 2014 22:31:27 +0400 Subject: [PATCH] Introducing ERR_SYSCALL that should be used on failures during syscalls execution. --- src/globals.h | 1 + src/libruntime/jerry-exit.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/globals.h b/src/globals.h index e777be880..d52f39cdd 100644 --- a/src/globals.h +++ b/src/globals.h @@ -54,6 +54,7 @@ typedef enum ERR_STRING = -8, ERR_PARSER = -9, ERR_MEMORY = -10, + ERR_SYSCALL = -11, ERR_GENERAL = -255 } jerry_status_t; diff --git a/src/libruntime/jerry-exit.c b/src/libruntime/jerry-exit.c index 45f4368bf..8e845bdc6 100644 --- a/src/libruntime/jerry-exit.c +++ b/src/libruntime/jerry-exit.c @@ -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;