10#if !defined(GUI_GENERAL_RESOURCE__H_)
11#define GUI_GENERAL_RESOURCE__H_
32#define GENERAL_RESOURCES_TABLE \
33ENTRY(KBD_LAYOUT_GERMAN, "keyboard_layout_german.bin", true) \
34ENTRY(KBD_LAYOUT_ENGLISH, "keyboard_layout_english.bin", true) \
35ENTRY(KBD_LAYOUT_RUSSIAN, "keyboard_layout_russian.bin", true) \
36ENTRY(KBD_LAYOUT_ARABIC, "keyboard_layout_arabic.bin", true) \
37ENTRY(DUMMY_RESOURCE, "DUMMY_RESOURCE", true)
40#define ENTRY_ENUM(a) -1
41#define ENTRY(res, res_filename, res_permanent) -1
46#ifndef GUILIANI_GUILIANILIB
47#include "UserGeneralResource.h"
54#define ENTRY_ENUM(a) a,
55#define ENTRY(res, res_filename, res_permanent) res,
57#ifndef GUILIANI_GUILIANILIB
58 USER_GENERAL_RESOURCES_TABLE
63 GUILIANI_INTERNAL_RES = INT_MAX
70#define MAP_RESID_TO_ARRAY(RES_ID) (static_cast<eC_UInt>(RES_ID-RES_START_TAG-1))
72#define UNMAP_RESENTRY_TO_ARRAY(RES_ENTRY) (static_cast<GeneralResource_t>(RES_ENTRY+RES_START_TAG+1))
const int ciCalculatedResStartTag
preprocessor generates for all entries of GENERAL_RESOURCES_TABLE: -1 -1 -1..., resulting in a mathem...
Definition: GUIGeneralResource.h:42
#define GENERAL_RESOURCES_TABLE
abstract resource files
Definition: GUIGeneralResource.h:32
GeneralResource_t
List of general resource ids.
Definition: GUIGeneralResource.h:52
const eC_UInt cuiNOFGeneralResources
Used to contain the highest index cuiNOFXXXClasses = MAP_PROPID_TO_ARRAY(NOF_XXXCLASSES);.
int static_assert_something[(DUMMY_RESOURCE==0) ? 1 :-1]
Will throw compile error negative subscript if DUMMY_RESOURCE is NOT 0!
Definition: GUIGeneralResource.h:67