mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
* Experiment flag for not caching ref on 515 * Update vv_outfit.dm * MANUAL MIRROR https://github.com/tgstation/tgstation/pull/72657 * MANUAL MIRROR https://github.com/tgstation/tgstation/pull/73788 --------- Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com> Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com> Co-authored-by: lessthnthree <three@lessthanthree.dk> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
// This file contains experimental flags that may not be production ready yet,
|
|
// but that we want to be able to easily flip as well as run on CI.
|
|
// Any flag you see here can be flipped with the `-D` CLI argument.
|
|
// For example, if you want to enable EXPERIMENT_MY_COOL_FEATURE, compile with -DEXPERIMENT_MY_COOL_FEATURE
|
|
|
|
// EXPERIMENT_515_QDEL_HARD_REFERENCE
|
|
// - Hold a hard reference for qdeleted items, and check ref_count, rather than using refs. Requires 515+.
|
|
|
|
// EXPERIMENT_515_DONT_CACHE_REF
|
|
// - Avoids `text_ref` caching, aided by improvements to ref() speed in 515.
|
|
|
|
#if DM_VERSION < 515
|
|
|
|
// You can't X-macro custom names :(
|
|
#ifdef EXPERIMENT_515_QDEL_HARD_REFERENCE
|
|
#warn EXPERIMENT_515_QDEL_HARD_REFERENCE is only available on 515+
|
|
#undef EXPERIMENT_515_QDEL_HARD_REFERENCE
|
|
#endif
|
|
|
|
#ifdef EXPERIMENT_515_DONT_CACHE_REF
|
|
#warn EXPERIMENT_515_DONT_CACHE_REF is only available on 515+
|
|
#undef EXPERIMENT_515_DONT_CACHE_REF
|
|
#endif
|
|
|
|
#elif defined(UNIT_TESTS)
|
|
|
|
#define EXPERIMENT_515_QDEL_HARD_REFERENCE
|
|
#define EXPERIMENT_515_DONT_CACHE_REF
|
|
|
|
#endif
|
|
|
|
#if DM_VERSION >= 516
|
|
#error "Remove all 515 experiments"
|
|
#endif
|