mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 07:57:50 +00:00
* The TGS thing * Revert the 516 revert * Further segment the world/New() proc * Fixes an issue here
12 lines
478 B
Plaintext
12 lines
478 B
Plaintext
#define QDEL_NULL(item) qdel(item); item = null
|
|
#define QDEL_LIST(L) if(L) { for(var/I in L) { qdel(I); } }
|
|
#define QDEL_LIST_ASSOC(L) if(L) { for(var/I in L) { qdel(L[I]); qdel(I); } }
|
|
|
|
#define QDEL_LIST_NULL(L) QDEL_LIST(L); L = null
|
|
#define QDEL_LIST_ASSOC_NULL(L) QDEL_LIST_ASSOC(L); L = null
|
|
#define QDEL_LIST_CUT(L) QDEL_LIST(L); L.Cut()
|
|
#define QDEL_LIST_ASSOC_CUT(L) QDEL_LIST_ASSOC(L); L.Cut()
|
|
|
|
// QDEL macros borrowed from TG
|
|
#define QDELETED(X) (!X || X.gcDestroyed)
|