Skip to content

Commit 7014811

Browse files
committed
fix: Add ObjType forward declaration to prevent typedef redefinition errors
1 parent 63786a9 commit 7014811

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ typedef struct Obj Obj;
5252
typedef struct ObjString ObjString;
5353
typedef struct ObjFunction ObjFunction;
5454
typedef struct ObjNative ObjNative;
55+
typedef enum ObjType ObjType;
5556
typedef struct Table Table;
5657
typedef struct Entry Entry;
5758
typedef struct ValueArray ValueArray;

0 commit comments

Comments
 (0)