Follow the API & build system update in mbed targets
- Update the API changes in mbed targets - Build fix for mbed target after the build system patch. JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
This commit is contained in:
@@ -19,20 +19,6 @@
|
||||
#define JERRY_STANDALONE_EXIT_CODE_OK (0)
|
||||
#define JERRY_STANDALONE_EXIT_CODE_FAIL (1)
|
||||
|
||||
#define API_DATA_IS_OBJECT(val_p) \
|
||||
((val_p)->type == JERRY_API_DATA_TYPE_OBJECT)
|
||||
|
||||
#define API_DATA_IS_FUNCTION(val_p) \
|
||||
(API_DATA_IS_OBJECT (val_p) && \
|
||||
jerry_api_is_function ((val_p)->u.v_object))
|
||||
|
||||
#define JS_VALUE_TO_NUMBER(val_p) \
|
||||
((val_p)->type == JERRY_API_DATA_TYPE_FLOAT32 ? \
|
||||
static_cast<double>((val_p)->u.v_float32) : \
|
||||
(val_p)->type == JERRY_API_DATA_TYPE_FLOAT64 ? \
|
||||
static_cast<double>((val_p)->u.v_float64) : \
|
||||
static_cast<double>((val_p)->u.v_uint32))
|
||||
|
||||
void js_register_functions (void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user