- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
(extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
BT game source (never mixed into CODE/). Round 1-3 state:
* 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
(BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
since 1996.
* BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
its binary-recorded line 400 exactly.
* BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
(Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
TeamScore=12 flagged [T4]).
* MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
(VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
the period compiler is the drift detector).
* Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
(per-TU verification sweep under authentic OPT.MAK flags).
* README: corrected roadmap - MECH.HPP is the capstone grown with the mech
TU reconstructions; BTREG.CPP green = the header-family milestone.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
68 lines
1.9 KiB
C++
68 lines
1.9 KiB
C++
//----------------------------------------------------------------------------
|
|
// ObjectSupport
|
|
// (C) Copyright 1994 by Borland International, All Rights Reserved
|
|
//
|
|
// Base exception support for framework exceptions
|
|
//----------------------------------------------------------------------------
|
|
#if !defined(OSL_EXCEPT_H)
|
|
#define OSL_EXCEPT_H
|
|
|
|
#if !defined(OSL_DEFS_H)
|
|
# include <osl/defs.h>
|
|
#endif
|
|
|
|
//----------------------------------------------------------------------------
|
|
// Exception support comes in two levels.
|
|
//
|
|
// 1) No emulation provided, any compiler support disabled. Throwing causes
|
|
// an abort. (DISABLE_EXCEPTIONS defined)
|
|
// 2) Compiler support exceptions (DISABLE_EXCEPTIONS not defined)
|
|
//
|
|
// BI_NO_EXCEPTIONS comes from classlib/compiler.h
|
|
// DISABLE_EXCEPTIONS comes from the outside
|
|
//
|
|
#if defined(DISABLE_EXCEPTIONS) // (level 1 -- exceptions disabled)
|
|
|
|
#define TRY
|
|
#define CATCH(arg_and_code)
|
|
#define ENDCATCH
|
|
#define THROW(expr) abort()
|
|
#define RETHROW
|
|
|
|
#else // (level 2 -- compiler support required)
|
|
|
|
#if defined( __BCPLUSPLUS__ )
|
|
# include <except.h>
|
|
#else
|
|
# error Exceptions are only natively supported with Borland C++.
|
|
#endif
|
|
|
|
#define TRY try
|
|
#define CATCH(arg_and_code) catch arg_and_code
|
|
#define ENDCATCH
|
|
#define THROW(expr) throw expr
|
|
#define RETHROW throw
|
|
|
|
#endif
|
|
|
|
//----------------------------------------------------------------------------
|
|
//
|
|
// Derived exception class that supports cloning, rethrowing & instance
|
|
// counting
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
class _BIDSCLASS_RTL TXBase : public xmsg {
|
|
public:
|
|
TXBase(const string& msg);
|
|
TXBase(const TXBase& src);
|
|
virtual ~TXBase();
|
|
|
|
virtual TXBase* Clone();
|
|
virtual void Throw();
|
|
|
|
static int InstanceCount;
|
|
};
|
|
|
|
#endif // OSL_EXCEPT_H
|