aboutsummaryrefslogtreecommitdiff
path: root/jerry-core
diff options
context:
space:
mode:
authorAkos Kiss <akiss@inf.u-szeged.hu>2018-06-04 03:55:51 +0200
committeryichoi <duddlf.choi@samsung.com>2018-06-04 10:55:51 +0900
commite1af56586cf9beeafbc67172b05cad28eca289cb (patch)
treeea431584adfb0e37c902ab99be78e3d730478266 /jerry-core
parent71471a0416fa31492c8831194f8dc8d975195ff4 (diff)
Declare parser_error_to_string conditionally (#2376)
Its implementation is only available if `JERRY_ENABLE_ERROR_MESSAGES` is defined. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
Diffstat (limited to 'jerry-core')
-rw-r--r--jerry-core/parser/js/js-parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/jerry-core/parser/js/js-parser.h b/jerry-core/parser/js/js-parser.h
index e5b90c33..ba4e8743 100644
--- a/jerry-core/parser/js/js-parser.h
+++ b/jerry-core/parser/js/js-parser.h
@@ -135,7 +135,9 @@ ecma_value_t parser_parse_script (const uint8_t *arg_list_p, size_t arg_list_siz
const uint8_t *source_p, size_t source_size,
bool is_strict, ecma_compiled_code_t **bytecode_data_p);
+#ifdef JERRY_ENABLE_ERROR_MESSAGES
const char *parser_error_to_string (parser_error_t);
+#endif /* JERRY_ENABLE_ERROR_MESSAGES */
/**
* @}