-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- menue_options.h: auto-calculate structs
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
#define OPTIONS_OFF0_ON1_OPTION_COUNT 2 | ||
const CMenuOptionChooser::keyval OPTIONS_OFF0_ON1_OPTIONS[OPTIONS_OFF0_ON1_OPTION_COUNT] = | ||
const CMenuOptionChooser::keyval OPTIONS_OFF0_ON1_OPTIONS[] = | ||
{ | ||
{ 0, LOCALE_OPTIONS_OFF }, | ||
{ 1, LOCALE_OPTIONS_ON } | ||
}; | ||
#define OPTIONS_OFF0_ON1_OPTION_COUNT (sizeof(OPTIONS_OFF0_ON1_OPTIONS)/sizeof(CMenuOptionChooser::keyval)) | ||
|
||
#define OPTIONS_OFF1_ON0_OPTION_COUNT 2 | ||
const CMenuOptionChooser::keyval OPTIONS_OFF1_ON0_OPTIONS[OPTIONS_OFF1_ON0_OPTION_COUNT] = | ||
const CMenuOptionChooser::keyval OPTIONS_OFF1_ON0_OPTIONS[] = | ||
{ | ||
{ 1, LOCALE_OPTIONS_OFF }, | ||
{ 0, LOCALE_OPTIONS_ON } | ||
}; | ||
#define OPTIONS_OFF1_ON0_OPTION_COUNT (sizeof(OPTIONS_OFF1_ON0_OPTIONS)/sizeof(CMenuOptionChooser::keyval)) | ||
|
||
#define MESSAGEBOX_NO_YES_OPTION_COUNT 2 | ||
const CMenuOptionChooser::keyval MESSAGEBOX_NO_YES_OPTIONS[MESSAGEBOX_NO_YES_OPTION_COUNT] = | ||
const CMenuOptionChooser::keyval MESSAGEBOX_NO_YES_OPTIONS[] = | ||
{ | ||
{ 0, LOCALE_MESSAGEBOX_NO }, | ||
{ 1, LOCALE_MESSAGEBOX_YES } | ||
}; | ||
#define MESSAGEBOX_NO_YES_OPTION_COUNT (sizeof(MESSAGEBOX_NO_YES_OPTIONS)/sizeof(CMenuOptionChooser::keyval)) | ||
|
||
#define OPTIONS_START0_STOP1_OPTION_COUNT 2 | ||
const CMenuOptionChooser::keyval OPTIONS_START0_STOP1_OPTIONS[OPTIONS_START0_STOP1_OPTION_COUNT] = | ||
const CMenuOptionChooser::keyval OPTIONS_START0_STOP1_OPTIONS[] = | ||
{ | ||
{ 0, LOCALE_OPTIONS_START }, | ||
{ 1, LOCALE_OPTIONS_STOP } | ||
}; | ||
#define OPTIONS_START0_STOP1_OPTION_COUNT (sizeof(OPTIONS_START0_STOP1_OPTIONS)/sizeof(CMenuOptionChooser::keyval)) |