clox/include/value.h
2024-08-31 15:54:46 -05:00

19 lines
340 B
C

#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