Simplify NAN boxing macro setting

This commit is contained in:
Saúl Ibarra Corretgé 2023-11-14 14:06:27 +01:00
parent 9749a90cc6
commit cc3e062484

View file

@ -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