added default values to enums

This commit is contained in:
Felix Müller 2024-06-02 23:27:22 +02:00
parent 7922fbc8b7
commit 70859e0a6a
1 changed files with 6 additions and 6 deletions

View File

@ -11,9 +11,9 @@
*/
typedef enum PrimitiveType_t {
// 4 byte signed integer in two's complement
Int,
Int =0,
// 4 byte IEEE-754 single precision
Float
Float =1
} PrimitiveType;
/**
@ -21,10 +21,10 @@ typedef enum PrimitiveType_t {
*
*/
typedef enum Sign_t {
// type has a sign bit
Signed,
// type has no sign bit
Unsigned
Unsigned = 0,
// type has a sign bit
Signed = 1
} Sign;
/**