Motr  M0
m0_xcode_enum_val Struct Reference

#include <enum.h>

Collaboration diagram for m0_xcode_enum_val:
Collaboration graph

Data Fields

int xev_idx
 
uint64_t xev_val
 
const char * xev_name
 

Detailed Description

Enum value descriptor.

Definition at line 78 of file enum.h.

Field Documentation

◆ xev_idx

int xev_idx

The index, starting with 0, of the constant in the enum declaration.

The literally first constant within "enum { ... }" declaration gets index 0, the second—1 and so on.

The last element in the m0_xcode_enum::xe_val[] array is a sentinel with index -1.

Definition at line 88 of file enum.h.

◆ xev_name

const char* xev_name

Symbolic constant name.

The sentinel element contains "Invalid value of enum 'NAME'." string here, where NAME is m0_xcode_enum::xe_name.

Definition at line 97 of file enum.h.

◆ xev_val

uint64_t xev_val

Constant value.

Definition at line 90 of file enum.h.


The documentation for this struct was generated from the following file: