The online racing simulator
InSim.txt enum members with _NUM ending??
Hi, could you help me out, please?

In InSim.txt I see these Enum members, but I can't figure out, what are they for (they don't have comment after them, they are always the last enum):
MSO_NUM
SND_NUM
VOTE_NUM
PITLANE_NUM
PSE_NUM
LEAVR_NUM
PENALTY_NUM
PENR_NUM
TYRE_NUM
PMO_NUM
DL_NUM

Thanks,
Arpad
Its a compiler trick you can use to determine the "length" or "size" of an enum. A compiler will sequentially assign numbers to a enum definition, if not specifically defined. So taking MSO enums into account this translates to:

enum
{
MSO_SYSTEM, // 0
MSO_USER, // 1
MSO_PREFIX, // 2
MSO_O, // 3
MSO_NUM // 4
};

If another entry is needed to be added, you'd do it after MSO_O, and before MSO_NUM, so that MSO_NUM becomes 5, which is the new length.

They'll be used internally within LFS, and are of no real use to a InSim client.
Oh, I see!
Thanks for the explanation.

Arpad
For the sake of fellow people who will search for this:

VIEW_MAX seems to provide the same function in "View identifiers" (camera type) enum.

FGED GREDG RDFGDR GSFDG