Object.h 347 B

1234567891011121314151617
  1. #ifndef OBJECT_H
  2. #define OBJECT_H
  3. typedef enum ObjectType { OT_INT, OT_FLOAT, OT_CONST_STRING, OT_NULL, OT_BOOL, OT_VOID } ObjectType;
  4. typedef struct Object {
  5. ObjectType type;
  6. union Data {
  7. int intValue;
  8. float floatValue;
  9. const char* stringValue;
  10. } data;
  11. } Object;
  12. const char* oGetName(ObjectType ot);
  13. #endif