lib/iec_types_all.h
changeset 199 b075f28ec081
parent 137 9ceda59abd27
child 221 c6aed7e5f070
equal deleted inserted replaced
198:f68ef6f05e17 199:b075f28ec081
    77   /* size do not correspond to real struct.
    77   /* size do not correspond to real struct.
    78    * only a bool is used to represent state*/
    78    * only a bool is used to represent state*/
    79   ANY_SFC(__decl_size_case_force_BOOL)
    79   ANY_SFC(__decl_size_case_force_BOOL)
    80   /*TODO handle custom types*/
    80   /*TODO handle custom types*/
    81  }
    81  }
       
    82  return 0;
    82 }
    83 }
    83 
    84 
    84 /* Get name of type from its number */
    85 /* Get name of type from its number */
    85 #define __decl_typename_case(TYPENAME) case TYPENAME##_ENUM: return #TYPENAME ;
    86 #define __decl_typename_case(TYPENAME) case TYPENAME##_ENUM: return #TYPENAME ;
    86 static inline const char* __get_type_enum_name(__IEC_types_enum t){
    87 static inline const char* __get_type_enum_name(__IEC_types_enum t){
    89   /* size do not correspond to real struct.
    90   /* size do not correspond to real struct.
    90    * only a bool is used to represent state*/
    91    * only a bool is used to represent state*/
    91   ANY_SFC(__decl_typename_case)
    92   ANY_SFC(__decl_typename_case)
    92   /*TODO handle custom types*/
    93   /*TODO handle custom types*/
    93  }
    94  }
       
    95  return 0;
    94 }
    96 }
    95 
    97 
    96 
    98 
    97 #endif /*IEC_TYPES_ALL_H*/
    99 #endif /*IEC_TYPES_ALL_H*/