]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/spawnfunc.qh
Concatenate log header strings in code
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / spawnfunc.qh
index 2d1397bc1be1271531c4ba40bf65a9891f0d4288..bf8eeb34b0eaafa268f24cfb7ca6e2396858352c 100644 (file)
@@ -1,5 +1,8 @@
 #pragma once
 
+// remove this ifdef when client or menu will actually make use of this stuff
+#ifdef SVQC
+
 /** If this global exists, only functions with spawnfunc_ name prefix qualify as spawn functions */
 noref bool require_spawnfunc_prefix;
 .bool spawnfunc_checked;
@@ -261,7 +264,7 @@ noref bool __spawnfunc_first;
                        assert(this); \
                } \
                if (!this.sourceLoc) { \
-                       this.sourceLoc = __FILE__ ":" STR(__LINE__); \
+                       this.sourceLoc = __FILE__":"STR(__LINE__); \
                } \
                if (!this.spawnfunc_checked) { \
                        _checkWhitelisted(this, #id); \
@@ -278,3 +281,5 @@ noref bool __spawnfunc_first;
                if (__spawnfunc_unreachable_workaround) return; \
        } \
        void __spawnfunc_##id(entity this)
+
+#endif