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 JERRYSCRIPT_PORT_DEFAULT_H |
17 | #define JERRYSCRIPT_PORT_DEFAULT_H |
18 | |
19 | #include <stdbool.h> |
20 | |
21 | #include "jerryscript.h" |
22 | #include "jerryscript-port.h" |
23 | |
24 | #ifdef __cplusplus |
25 | extern "C" |
26 | { |
27 | #endif /* __cplusplus */ |
28 | |
29 | /** \addtogroup jerry_port_default Default Jerry engine port API |
30 | * These functions are only available if the default port of Jerry is used. |
31 | * @{ |
32 | */ |
33 | |
34 | jerry_log_level_t jerry_port_default_get_log_level (void); |
35 | void jerry_port_default_set_log_level (jerry_log_level_t level); |
36 | |
37 | void jerry_port_default_set_current_context (jerry_context_t *context_p); |
38 | |
39 | /** |
40 | * @} |
41 | */ |
42 | |
43 | #ifdef __cplusplus |
44 | } |
45 | #endif /* __cplusplus */ |
46 | #endif /* !JERRYSCRIPT_PORT_DEFAULT_H */ |
47 | |