mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
These are compile-time build configuration, so they belong in CMakeLists.txt where the build files can see and vary them, not in a header buried in the source tree. An Opus 4.8 session lost a long hunt looking for one of them. builddefines.h is left as an empty husk for now so that every translation unit keeps its line numbering: __LINE__ is baked into each Assert() and DebugMsg() call site, so dropping the include would move thousands of immediates and hide any real code change in the noise. With the include left in place all twelve executables (JA2, JA2MAPEDITOR, JA2UB, JA2UBMAPEDITOR, symbolize_crash and Ja2Export, in Debug and RelWithDebInfo) come out bit-identical, once the two timestamps and the CodeView GUID that lld-link rewrites on every link are normalized away. The commented-out block that also lived here is gone: JA2UB, JA2UBMAPS, JA2EDITOR, JA2BETAVERSION, JA2TESTVERSION, DEBUG_ATTACKBUSY and JA113DEMO are all names CMakeLists.txt already owns, and having them appear as dead #defines in a header is what sends readers down the wrong path. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
11 lines
285 B
C
11 lines
285 B
C
#ifndef _BUILDDEFINES_H
|
|
#define _BUILDDEFINES_H
|
|
|
|
// The compile-time switches that used to live here now live in CMakeLists.txt,
|
|
// which is where the build system can see them. This header is empty and about
|
|
// to be deleted; do not add anything to it.
|
|
|
|
#include "profiler.h"
|
|
|
|
#endif
|