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
+1 -17
View File
@@ -16,16 +16,7 @@
#ifndef JERRY_GLOBALS_H
#define JERRY_GLOBALS_H
#include <float.h>
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <sys/types.h>
/**
* Types
*/
typedef unsigned long mword_t;
#include "jrt_types.h"
/**
* Attributes
@@ -213,11 +204,4 @@ extern void __noreturn jerry_exit (jerry_status_t code);
#define JERRY_MIN(v1, v2) ((v1 < v2) ? v1 : v2)
#define JERRY_MAX(v1, v2) ((v1 < v2) ? v2 : v1)
/**
* Enable --show-opcodes key.
*/
#if defined (__TARGET_HOST) && !defined (JERRY_NDEBUG)
# define JERRY_ENABLE_PP
#endif
#endif /* !JERRY_GLOBALS_H */