Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: SHOULD_NOT_CALL_PARENT #407

Open
Absolucy opened this issue Aug 22, 2024 · 0 comments
Open

Feature request: SHOULD_NOT_CALL_PARENT #407

Absolucy opened this issue Aug 22, 2024 · 0 comments

Comments

@Absolucy
Copy link

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.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants