Simplify NAN boxing macro setting
This commit is contained in:
parent
9749a90cc6
commit
cc3e062484
1 changed files with 2 additions and 8 deletions
10
quickjs.h
10
quickjs.h
|
@ -55,14 +55,8 @@ typedef struct JSClass JSClass;
|
||||||
typedef uint32_t JSClassID;
|
typedef uint32_t JSClassID;
|
||||||
typedef uint32_t JSAtom;
|
typedef uint32_t JSAtom;
|
||||||
|
|
||||||
#if INTPTR_MAX >= INT64_MAX
|
#if INTPTR_MAX < INT64_MAX
|
||||||
#define JS_PTR64
|
/* Use NAN boxing for 32bit builds. */
|
||||||
#define JS_PTR64_DEF(a) a
|
|
||||||
#else
|
|
||||||
#define JS_PTR64_DEF(a)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef JS_PTR64
|
|
||||||
#define JS_NAN_BOXING
|
#define JS_NAN_BOXING
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue