1 | /* Copyright JS Foundation and other contributors, http://js.foundation |
2 | * |
3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
4 | * you may not use this file except in compliance with the License. |
5 | * You may obtain a copy of the License at |
6 | * |
7 | * http://www.apache.org/licenses/LICENSE-2.0 |
8 | * |
9 | * Unless required by applicable law or agreed to in writing, software |
10 | * distributed under the License is distributed on an "AS IS" BASIS |
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | * See the License for the specific language governing permissions and |
13 | * limitations under the License. |
14 | */ |
15 | |
16 | #ifndef MAIN_UTILS_H |
17 | #define MAIN_UTILS_H |
18 | |
19 | #include "main-options.h" |
20 | |
21 | /** |
22 | * Standalone Jerry exit codes |
23 | */ |
24 | #define JERRY_STANDALONE_EXIT_CODE_OK (0) |
25 | #define JERRY_STANDALONE_EXIT_CODE_FAIL (1) |
26 | |
27 | void |
28 | main_init_engine (main_args_t *arguments_p); |
29 | void |
30 | main_print_unhandled_exception (jerry_value_t error_value); |
31 | |
32 | jerry_value_t |
33 | main_wait_for_source_callback (const jerry_char_t *resource_name_p, |
34 | size_t resource_name_size, |
35 | const jerry_char_t *source_p, |
36 | size_t source_size, |
37 | void *user_p); |
38 | |
39 | bool |
40 | main_is_value_reset (jerry_value_t value); |
41 | |
42 | #endif /* !MAIN_UTILS_H */ |
43 | |