Helper Macros in Guiliani
More...
#include "eC_Types.h"
#include <limits.h>
Go to the source code of this file.
|
#define | ENTRY(snd, snd_filename, snd_permanent) -1 |
| Helper Macros in Guiliani
|
|
#define | ENTRY(snd, snd_filename, snd_permanent) snd, |
| Helper Macros in Guiliani
|
|
#define | ENTRY_ENUM(a) -1 |
| Helper Macros in Guiliani
|
|
#define | ENTRY_ENUM(a) a, |
| Helper Macros in Guiliani
|
|
#define | MAP_SNDID_TO_ARRAY(SND_ID) static_cast<eC_UInt>(SND_ID-SND_START_TAG-1) |
| Map SoundIDs to interval 0 to NOF_SOUNDRESOURCES.
|
|
#define | SOUND_TABLE ENTRY(DUMMY_SOUND, "DUMMY_SOUND", true) |
| sound resources
|
|
#define | UNMAP_SNDENTRY_TO_ARRAY(SND_ENTRY) static_cast<SoundResource_t>(SND_ENTRY+SND_START_TAG+1) |
| Unmap SoundIDs to interval 0 to NOF_SOUNDRESOURCES.
|
|
|
typedef int | static_assert_something[(DUMMY_SOUND==0) ? 1 :-1] |
| Will throw compile error negative subscript if DUMMY_SOUND is NOT 0!
|
|
|
enum | SoundResource_t { SND_START_TAG = ciCalculatedSndStartTag
, DUMMY_SOUND
, NOF_SOUNDRESOURCES
, GUILIANI_INTERNAL_SND = INT_MAX
} |
| List of sound resource ids.
|
|
|
const int | ciCalculatedSndStartTag = -1 |
| preprocessor generates for all entries of SOUND_TABLE: -1 -1 -1..., resulting in a mathematical expression, that will be evaluated to -1*(Number of entries of IMAGE_TABLE
|
|
const eC_UInt | cuiNOFSoundResources |
| Used to contain the highest index cuiNOFXXXClasses = MAP_PROPID_TO_ARRAY(NOF_XXXCLASSES);.
|
|