Object.h 250 B

1234567891011121314
  1. #ifndef OBJECT_H
  2. #define OBJECT_H
  3. typedef enum ObjectType { OT_INT, OT_FLOAT, OT_NULL, OT_BOOL } ObjectType;
  4. typedef struct Object {
  5. ObjectType type;
  6. union Data {
  7. int intValue;
  8. float floatValue;
  9. } data;
  10. } Object;
  11. #endif