Splitting main.cpp into jerry.cpp, main_linux.cpp and main_mcu.cpp; leaving __TARGET* defines usage only in jrt and plugins.

This commit is contained in:
Ruben Ayrapetyan
2015-02-11 14:10:14 +03:00
parent 145fba4109
commit ccc0453f34
11 changed files with 187 additions and 125 deletions
+36
View File
@@ -0,0 +1,36 @@
/* Copyright 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef JERRY_H
#define JERRY_H
#include "jrt_types.h"
/** \addtogroup jerry Jerry engine interface
* @{
*/
extern bool
jerry_run (const char *script_source,
size_t script_source_size,
bool is_parse_only,
bool is_show_opcodes,
bool is_show_mem_stats);
/**
* @}
*/
#endif /* !JERRY_H */