Commit 6353ffe2 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Duke3d: add STANDALONE_EVAL macro

parent 3cbf4001
......@@ -53,6 +53,13 @@ extern int g_addonNum;
#define DUKEBETA ((g_gameType & GAMEFLAG_DUKEBETA) == GAMEFLAG_DUKEBETA)
#define FURY (g_gameType & GAMEFLAG_FURY)
// statements using STANDALONE_EVAL(false, ...) are expected to be optimized away entirely in EDUKE32_STANDALONE builds
#ifdef EDUKE32_STANDALONE
# define STANDALONE_EVAL(x, y) (x)
#else
# define STANDALONE_EVAL(x, y) (y)
#endif
enum Games_t {
GAME_DUKE = 0,
GAME_NAM,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment