Space Station 13 - Modules - TypesDefine Details

code/__DEFINES/__proc_refs.dm

PROC_REFCall by name proc references, checks if the proc exists on either this type () (AND ONLY THIS TYPE) or as a global proc.
VERB_REFCall by name verb references, checks if the verb exists on either this type or as a global verb.
TYPE_PROC_REFCall by name proc reference, checks if the proc exists on either the given type or as a global proc
TYPE_VERB_REFCall by name verb reference, checks if the verb exists on either the given type or as a global verb
GLOBAL_PROC_REFCall by name proc reference, checks if the proc is an existing global proc
NAMEOFNAMEOF: Compile time checked variable name to string conversion evaluates to a string equal to "X", but compile errors if X isn't a var on datum. datum may be null, but it does need to be a typed var.
NAMEOF_STATICNAMEOF that actually works in static definitions because src::type requires src to be defined

Define Details

GLOBAL_PROC_REF

Call by name proc reference, checks if the proc is an existing global proc

NAMEOF

NAMEOF: Compile time checked variable name to string conversion evaluates to a string equal to "X", but compile errors if X isn't a var on datum. datum may be null, but it does need to be a typed var.

NAMEOF_STATIC

NAMEOF that actually works in static definitions because src::type requires src to be defined

PROC_REF

Call by name proc references, checks if the proc exists on either this type () (AND ONLY THIS TYPE) or as a global proc.

TYPE_PROC_REF

Call by name proc reference, checks if the proc exists on either the given type or as a global proc

TYPE_VERB_REF

Call by name verb reference, checks if the verb exists on either the given type or as a global verb

VERB_REF

Call by name verb references, checks if the verb exists on either this type or as a global verb.