File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,8 @@ typedef struct JSShape JSShape;
208
208
typedef struct JSString JSString;
209
209
typedef struct JSString JSAtomStruct;
210
210
211
+ #define JS_VALUE_GET_STRING(v) ((JSString *)JS_VALUE_GET_PTR(v))
212
+
211
213
typedef enum {
212
214
JS_GC_PHASE_NONE,
213
215
JS_GC_PHASE_DECREF,
Original file line number Diff line number Diff line change @@ -205,7 +205,6 @@ static inline JS_BOOL JS_VALUE_IS_NAN(JSValue v)
205
205
#define JS_VALUE_IS_BOTH_FLOAT (v1 , v2 ) (JS_TAG_IS_FLOAT64(JS_VALUE_GET_TAG(v1)) && JS_TAG_IS_FLOAT64(JS_VALUE_GET_TAG(v2)))
206
206
207
207
#define JS_VALUE_GET_OBJ (v ) ((JSObject *)JS_VALUE_GET_PTR(v))
208
- #define JS_VALUE_GET_STRING (v ) ((JSString *)JS_VALUE_GET_PTR(v))
209
208
#define JS_VALUE_HAS_REF_COUNT (v ) ((unsigned)JS_VALUE_GET_TAG(v) >= (unsigned)JS_TAG_FIRST)
210
209
211
210
/* special values */
You can’t perform that action at this time.
0 commit comments