Skip to content

Commit

Permalink
Simplify NAN boxing macro setting
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Nov 14, 2023
1 parent 9749a90 commit cc3e062
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions quickjs.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,8 @@ typedef struct JSClass JSClass;
typedef uint32_t JSClassID;
typedef uint32_t JSAtom;

#if INTPTR_MAX >= INT64_MAX
#define JS_PTR64
#define JS_PTR64_DEF(a) a
#else
#define JS_PTR64_DEF(a)
#endif

#ifndef JS_PTR64
#if INTPTR_MAX < INT64_MAX
/* Use NAN boxing for 32bit builds. */
#define JS_NAN_BOXING
#endif

Expand Down

0 comments on commit cc3e062

Please sign in to comment.