Contents Previous Next

Enumerations

Each enumeration must have a comment block immediately before the definition describing what the enumeration is for, and each enumeration value must have a comment immediately after the value, as follows:

   /*
    * Enumeration of media trays.
    */
    enum this_enum_e
    {
      THIS_TRAY,   /* This tray */
      THAT_TRAY    /* That tray */
    };

Contents Previous Next