SpacemanDMM icon indicating copy to clipboard operation
SpacemanDMM copied to clipboard

Feature request: SHOULD_NOT_CALL_PARENT

Open Absolucy opened this issue 1 year ago • 0 comments

Basically the opposite of SHOULD_CALL_PARENT - it bans child procs from calling the parent proc.

Example of where it'd actually be useful:

/datum/controller/subsystem/proc/fire(resumed = FALSE)
	SHOULD_NOT_CALL_PARENT(TRUE)
	flags |= SS_NO_FIRE
	CRASH("Subsystem [src]([type]) does not fire() but did not set the SS_NO_FIRE flag. Please add the SS_NO_FIRE flag to any subsystem that doesn't fire so it doesn't get added to the processing list and waste cpu.")

Absolucy avatar Aug 22 '24 02:08 Absolucy