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:
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
|
||||
#include "jrt.h"
|
||||
#ifdef JERRY_ENABLE_PP
|
||||
#ifdef JERRY_ENABLE_PRETTY_PRINTER
|
||||
#include "pretty-printer.h"
|
||||
#include "jerry-libc.h"
|
||||
#include "lexer.h"
|
||||
@@ -650,4 +650,4 @@ pp_op_meta (opcode_counter_t oc, op_meta opm, bool rewrite)
|
||||
|
||||
__printf ("\n");
|
||||
}
|
||||
#endif /* JERRY_ENABLE_PP */
|
||||
#endif /* JERRY_ENABLE_PRETTY_PRINTER */
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#define PRETTY_PRINTER
|
||||
|
||||
#include "jrt.h"
|
||||
#ifdef JERRY_ENABLE_PP
|
||||
#ifdef JERRY_ENABLE_PRETTY_PRINTER
|
||||
#include "vm.h"
|
||||
#include "literal.h"
|
||||
#include "scopes-tree.h"
|
||||
@@ -25,6 +25,6 @@
|
||||
void pp_opcode (opcode_counter_t, opcode_t, bool);
|
||||
void pp_op_meta (opcode_counter_t, op_meta, bool);
|
||||
void pp_literals (const literal *, literal_index_t);
|
||||
#endif // JERRY_ENABLE_PP
|
||||
#endif // JERRY_ENABLE_PRETTY_PRINTER
|
||||
|
||||
#endif // PRETTY_PRINTER
|
||||
|
||||
Reference in New Issue
Block a user