Skip to content

Commit 8ec50c7

Browse files
authored
Update value.h
1 parent df37ef6 commit 8ec50c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

value.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ typedef enum {
1616
} ValueType;
1717
#endif
1818

19+
typedef struct Value Value;
20+
1921
typedef struct Object {
2022
struct Object* next;
2123
bool marked;
@@ -56,7 +58,7 @@ typedef struct {
5658
#define AS_STRING(v) ((v).data.str_val)
5759
#define AS_OBJ(v) ((v).data.obj)
5860

59-
void print_value(Value* value);
61+
void print_value(Value value);
6062
void* reallocate(void* pointer, size_t oldSize, size_t newSize);
6163

6264
#endif

0 commit comments

Comments
 (0)