X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2F_all.inc;h=0bef0b6e0e944feebfe54c14fea8728a9bc6d295;hb=bb92926e2ce245957e28e9fc78b6250eb9c082f5;hp=addced2b3f0a5d6aa7932f9cc224ed5843047bfd;hpb=52cdd440f6cfdc9544099ac68455e5361ace00d2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/_all.inc b/qcsrc/lib/_all.inc index addced2b3..0bef0b6e0 100644 --- a/qcsrc/lib/_all.inc +++ b/qcsrc/lib/_all.inc @@ -104,6 +104,9 @@ #include "warpzone/mathlib.qc" +// needs to be included before any of the functions which use globals are called +#include "deglobalization.qh" + #include "accumulate.qh" #include "angle.qc" #include "arraylist.qh" @@ -115,6 +118,7 @@ #include "draw.qh" #include "enumclass.qh" #include "file.qh" +#include "float.qh" #include "functional.qh" #include "i18n.qh" #include "intrusivelist.qh" @@ -133,6 +137,7 @@ #include "oo.qh" #include "p2mathlib.qc" #include "progname.qh" +#include "promise.qc" #include "random.qc" #include "registry.qh" #include "registry_net.qh" @@ -161,14 +166,14 @@ void make_safe_for_remove(entity this); #define objerror_safe(e) make_safe_for_remove(e) #endif -#define objerror(this, msg) MACRO_BEGIN { \ +#define objerror(this, msg) MACRO_BEGIN \ LOG_WARN("======OBJECT ERROR======"); \ entity _e = (this); \ eprint(_e); \ objerror_safe(_e); \ delete(_e); \ LOG_WARNF("%s OBJECT ERROR in %s:\n%s\nTip: read above for entity information", PROGNAME, __FUNC__, msg); \ -} MACRO_END +MACRO_END #ifdef MENUQC void _m_init();