Skip to content

Commit

Permalink
Provide a diagnostic message for the two 32-bit related static_asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
jengelh authored and madame-rachelle committed May 18, 2024
1 parent 6d8bee9 commit 1dedcee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/common/engine/i_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
#include "gstrings.h"
#include "version.h"

static_assert(sizeof(void*) == 8, "32 builds are not supported");
static_assert(sizeof(void*) == 8,
"Only LP64/LLP64 builds are officially supported. "
"Please do not attempt to build for other platforms; "
"even if the program succeeds in a MAP01 smoke test, "
"there are e.g. known visual artifacts "
"<https://forum.zdoom.org/viewtopic.php?f=7&t=75673> "
"that lead to a bad user experience.");

// Some global engine variables taken out of the backend code.
FStartupScreen* StartWindow;
Expand Down
2 changes: 1 addition & 1 deletion src/playsim/p_effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ struct particle_t
FStandaloneAnimation animData; //+16 = 128
};

static_assert(sizeof(particle_t) == 128);
static_assert(sizeof(particle_t) == 128, "Only LP64/LLP64 is supported");

const uint16_t NO_PARTICLE = 0xffff;

Expand Down

0 comments on commit 1dedcee

Please sign in to comment.