Files
S.P.L.U.R.T-Station-13/code/__HELPERS/weakref.dm
SandPoot 8911fe5e0b clear em
2022-12-11 17:58:45 -03:00

3 lines
202 B
Plaintext

/// Checks if potential_weakref is a weakref of thing.
#define IS_WEAKREF_OF(thing, potential_weakref) (istype(thing, /datum) && !isnull(potential_weakref) && thing.weak_reference == potential_weakref)