Object.h 297 B

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