Files
CHOMPStation2/code/__datastructures/globals.dm
Leshana 0aff9dc9ee Update and document GLOB macros (#6704)
* Ports avoiding overwriting raw globals with null during global init.

* From tgstation/tgstation#31882
* Previously globals declared without an initial value would get set to
 null when globals are initialized.  This might be fine, but typically if
 a global isn't given an initial value at declaration its because other
 (probably legacy) code intends to initialize it.  That code might run
 before global variable initialization, and thus be overwritten with null
 when global variables initialize.

* Adds comments and global typed lists to GLOB macros

* Credit to tgstation/tgstation#38893 and tgstation/tgstation#44825
* Document what the global var declaration macros do.
* Add macros to declare typed global lists.
2020-02-19 01:14:53 -05:00

2.3 KiB