mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 18:12:40 +00:00
End 512 compiler support for good (#8951)
This commit is contained in:
@@ -16,10 +16,6 @@
|
||||
#define safepick(L) LAZYPICK(L,null)
|
||||
#define listgetindex(L,I) LAZYACCESS(L,I)
|
||||
|
||||
#if DM_VERSION < 513
|
||||
#define islist(L) istype(L,/list)
|
||||
#endif
|
||||
|
||||
// binary search sorted insert
|
||||
// IN: Object to be inserted
|
||||
// LIST: List to insert object into
|
||||
|
||||
@@ -291,17 +291,8 @@
|
||||
#define NL_PERMANENT_DISABLE 2
|
||||
|
||||
// Used for creating soft references to objects. A manner of storing an item reference
|
||||
// as text so you don't necessarily fuck with an object's ability to be garbage collected.
|
||||
#if DM_VERSION < 513
|
||||
|
||||
#define SOFTREF(A) "\ref[A]"
|
||||
|
||||
#else
|
||||
|
||||
#define SOFTREF(A) ref(A)
|
||||
|
||||
#endif
|
||||
|
||||
// This only works on 511 because it relies on 511's `var/something = foo = bar` syntax.
|
||||
#define WEAKREF(D) (istype(D, /datum) && !D:gcDestroyed ? (D:weakref || (D:weakref = new/datum/weakref(D))) : null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user