dd_variable_type.h 502 B

123456789101112131415161718192021
  1. #ifndef DD_VARIABLE_TYPES_H
  2. #define DD_VARIABLE_TYPES_H
  3. // struct types
  4. enum dd_variable_type {
  5. DD_VARIABLE_TYPE_VOID,
  6. DD_VARIABLE_TYPE_INT,
  7. DD_VARIABLE_TYPE_FLOAT,
  8. DD_VARIABLE_TYPE_STRUCT,
  9. DD_VARIABLE_TYPE_STRING,
  10. DD_VARIABLE_TYPE_CHAR,
  11. DD_VARIABLE_TYPE_FUNCTION,
  12. DD_VARIABLE_TYPE_UNKNOWN,
  13. };
  14. enum dd_variable_type dd_variable_type_convert(const char *type);
  15. int dd_variable_type_isPrimitiveType(const char *type);
  16. const char *dd_variable_type_getString(enum dd_variable_type type);
  17. #endif