Implement common external function handlers in jerry-ext (#1787)

Added `handler` module to `jerry-ext` to contain implementation of
commonly used external function handlers: `assert`, `gc`, and
`print`.

Also adapted jerry-main to use jerry-ext/handler

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2017-05-09 10:16:56 +02:00
committed by GitHub
parent 68f9585b96
commit a8f2d31bca
13 changed files with 517 additions and 131 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ endmacro()
# Jerry standalones
if(JERRY_CMDLINE)
jerry_create_executable("jerry" "main-unix.c")
target_link_libraries("jerry" jerry-port-default)
target_link_libraries("jerry" jerry-ext jerry-port-default)
endif()
if(JERRY_CMDLINE_MINIMAL)