Is there any method to natively detect a var that has the static modifier at runtime?
We are working on improvements to our garbage collection queue where we automatically null all vars when sending the object to be finally Del'd (reduces deletion time), because developers keep forgetting to null them in the Destroy proc of the object as part of the soft delete functionality in ss13
This presents a problem as we never want to null static/shared class vars on an instance.
The current plan is to use a macro to prefix the var with some obvious key __static__ etc that can be checked. But just before I go ahead with that, I thought I'd check if anyone has any byond magic to test if a var is of the type static at runtime.
Sep 14 2017, 3:35 pm