Fix nanboxing issue.
@@ -359,6 +359,26 @@ typedef struct JanetDictView JanetDictView;
typedef struct JanetRange JanetRange;
typedef struct JanetRNG JanetRNG;
+/* Basic types for all Janet Values */
+typedef enum JanetType {
+ JANET_NUMBER,
+ JANET_NIL,
+ JANET_BOOLEAN,
+ JANET_FIBER,
+ JANET_STRING,
+ JANET_SYMBOL,
+ JANET_KEYWORD,
+ JANET_ARRAY,
+ JANET_TUPLE,
+ JANET_TABLE,
+ JANET_STRUCT,
+ JANET_BUFFER,
+ JANET_FUNCTION,
+ JANET_CFUNCTION,
+ JANET_ABSTRACT,
+ JANET_POINTER
+} JanetType;
+
/* Recursive type (Janet) */
#ifdef JANET_NANBOX_64
typedef union Janet Janet;
@@ -414,26 +434,6 @@ typedef const Janet *JanetTuple;
typedef const JanetKV *JanetStruct;
typedef void *JanetAbstract;
-/* Basic types for all Janet Values */
-typedef enum JanetType {
- JANET_NUMBER,
- JANET_NIL,
- JANET_BOOLEAN,
- JANET_FIBER,
- JANET_STRING,
- JANET_SYMBOL,
- JANET_KEYWORD,
- JANET_ARRAY,
- JANET_TUPLE,
- JANET_TABLE,
- JANET_STRUCT,
- JANET_BUFFER,
- JANET_FUNCTION,
- JANET_CFUNCTION,
- JANET_ABSTRACT,
- JANET_POINTER
-} JanetType;
-
#define JANET_COUNT_TYPES (JANET_POINTER + 1)
/* Type flags */
