Commit Graph

4 Commits

Author SHA1 Message Date
spookerton
ee67e174fb use static for shared member vars 2022-04-24 07:52:32 +01:00
Leshana
543a567a81 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-18 22:14:01 -08:00
kevinz000
c7d0f76205 Stuff 2018-10-22 23:26:38 -07:00
Anewbe
eebb627f00 Partially ports the GLOB system 2018-08-14 18:14:09 -05:00