[MIRROR] Removes 200mb of wasted memory usage (#3472)

* Merge pull request #31835 from MrStonedOne/coiax-is-fired---again

Removes 200mb of wasted memory usage

* Removes 200mb of wasted memory usage
This commit is contained in:
CitadelStationBot
2017-10-17 22:18:19 -05:00
committed by Poojawa
parent 9691c9130f
commit 7f9d13ab42
3 changed files with 8 additions and 4 deletions
+1
View File
@@ -485,6 +485,7 @@
//Picks from the list, with some safeties, and returns the "default" arg if it fails
#define DEFAULTPICK(L, default) ((islist(L) && length(L)) ? pick(L) : default)
#define LAZYINITLIST(L) if (!L) L = list()
#define UNSETEMPTY(L) if (L && !L.len) L = null
#define LAZYREMOVE(L, I) if(L) { L -= I; if(!L.len) { L = null; } }