clox/include/value.h

19 lines
340 B
C
Raw Permalink Normal View History

2024-08-31 20:54:46 +00:00
#ifndef VALUE_INCLUDED
#define VALUE_INCLUDED
#include "common.h"
typedef double Value;
typedef struct {
int len;
int cap;
Value *values;
} ValueArray;
void initValueArray(ValueArray *array);
void writeValueArray(ValueArray *array, Value value);
void freeValueArray(ValueArray *array);
void printValue(Value value);
#endif