mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- use a few static asserts instead of runtime asserts in the VM's type code.
This commit is contained in:
parent
4ac7588488
commit
a89afe61f2
1 changed files with 4 additions and 4 deletions
|
@ -1042,7 +1042,7 @@ PName::PName()
|
|||
{
|
||||
mDescriptiveName = "Name";
|
||||
Flags |= TYPE_IntNotInt;
|
||||
assert(sizeof(FName) == alignof(FName));
|
||||
static_assert(sizeof(FName) == alignof(FName), "Name not properly aligned");
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
@ -1172,7 +1172,7 @@ PTextureID::PTextureID()
|
|||
{
|
||||
mDescriptiveName = "TextureID";
|
||||
Flags |= TYPE_IntNotInt;
|
||||
assert(sizeof(FTextureID) == alignof(FTextureID));
|
||||
static_assert(sizeof(FTextureID) == alignof(FTextureID), "TextureID not properly aligned");
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
@ -1214,7 +1214,7 @@ PSound::PSound()
|
|||
{
|
||||
mDescriptiveName = "Sound";
|
||||
Flags |= TYPE_IntNotInt;
|
||||
assert(sizeof(FSoundID) == alignof(FSoundID));
|
||||
static_assert(sizeof(FSoundID) == alignof(FSoundID), "SoundID not properly aligned");
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
@ -1263,7 +1263,7 @@ PColor::PColor()
|
|||
{
|
||||
mDescriptiveName = "Color";
|
||||
Flags |= TYPE_IntNotInt;
|
||||
assert(sizeof(PalEntry) == alignof(PalEntry));
|
||||
static_assert(sizeof(PalEntry) == alignof(PalEntry), "PalEntry not properly aligned");
|
||||
}
|
||||
|
||||
/* PStateLabel *****************************************************************/
|
||||
|
|
Loading…
Reference in a new issue