Skip to content

Commit 1357910

Browse files
authored
Update object.h
1 parent 424b965 commit 1357910

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

object.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
#define IS_STRING(value) isObjType(value, OBJ_STRING)
1111
#define AS_STRING(value) ((ObjString*)AS_OBJ(value))
1212
#define AS_CSTRING(value) (((ObjString*)AS_OBJ(value))->chars)
13-
typedef struct Obj Obj;
13+
1414
typedef struct ObjString ObjString;
1515
struct VM;
1616

1717
typedef enum {
1818
OBJ_STRING,
1919
} ObjType;
2020

21-
struct {
21+
typedef struct {
2222
ObjType type;
2323
bool is_marked;
2424
struct Obj* next;

0 commit comments

Comments
 (0)