Remove JS_VALUE_GET_STRING from the public API
JSString is not part of the API.
This commit is contained in:
parent
4a66289af4
commit
1796b36db7
2 changed files with 2 additions and 1 deletions
|
@ -208,6 +208,8 @@ typedef struct JSShape JSShape;
|
||||||
typedef struct JSString JSString;
|
typedef struct JSString JSString;
|
||||||
typedef struct JSString JSAtomStruct;
|
typedef struct JSString JSAtomStruct;
|
||||||
|
|
||||||
|
#define JS_VALUE_GET_STRING(v) ((JSString *)JS_VALUE_GET_PTR(v))
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
JS_GC_PHASE_NONE,
|
JS_GC_PHASE_NONE,
|
||||||
JS_GC_PHASE_DECREF,
|
JS_GC_PHASE_DECREF,
|
||||||
|
|
|
@ -205,7 +205,6 @@ static inline JS_BOOL JS_VALUE_IS_NAN(JSValue v)
|
||||||
#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)))
|
#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)))
|
||||||
|
|
||||||
#define JS_VALUE_GET_OBJ(v) ((JSObject *)JS_VALUE_GET_PTR(v))
|
#define JS_VALUE_GET_OBJ(v) ((JSObject *)JS_VALUE_GET_PTR(v))
|
||||||
#define JS_VALUE_GET_STRING(v) ((JSString *)JS_VALUE_GET_PTR(v))
|
|
||||||
#define JS_VALUE_HAS_REF_COUNT(v) ((unsigned)JS_VALUE_GET_TAG(v) >= (unsigned)JS_TAG_FIRST)
|
#define JS_VALUE_HAS_REF_COUNT(v) ((unsigned)JS_VALUE_GET_TAG(v) >= (unsigned)JS_TAG_FIRST)
|
||||||
|
|
||||||
/* special values */
|
/* special values */
|
||||||
|
|
Loading…
Reference in a new issue