// The only parameter reflects if the entity is "new" to the client, meaning it just came into the client's PVS.
void CSQC_Ent_Update(entity this, bool isnew)
{
- this.sourceLoc = __FILE__ ":" STR(__LINE__);
+ this.sourceLoc = __FILE__":"STR(__LINE__);
int t = ReadByte();
// set up the "time" global for received entities to be correct for interpolation purposes
// would be nice if __FUNC__ could be concatenated at compile time
#if 0
// less work, bigger binary
- #define __SOURCELOC__ (sprintf("^7%s^9" "(" "^9"__FILE__"^7" ":" "^9"STR(__LINE__)"^7" ")", __FUNC__))
+ #define __SOURCELOC__ (sprintf("^7%s^9(^9"__FILE__"^7:^9"STR(__LINE__)"^7)", __FUNC__))
#else
- #define __SOURCELOC__ (sprintf("^7%s^9" "(" "^9%s^7" ":" "^9%s^7" ")", __FUNC__, __FILE__, STR(__LINE__)))
+ #define __SOURCELOC__ (sprintf("^7%s^9(^9%s^7:^9%s^7)", __FUNC__, __FILE__, STR(__LINE__)))
#endif
-#define _LOG_HEADER(level) "^9[::" "^7"PROGNAME"^9" "::" level"^9" "] ", __SOURCELOC__
+#define _LOG_HEADER(level) "^9[::^7"PROGNAME"^9::"level"^9] ", __SOURCELOC__
#define _LOG(f, level, s) \
MACRO_BEGIN \
f(strcat1n(_LOG_HEADER(level), "\n^7", s, "\n")); \
ACCUMULATE NET_HANDLE(id, bool isnew) \
{ \
this = __self; \
- this.sourceLoc = __FILE__ ":" STR(__LINE__); \
+ this.sourceLoc = __FILE__":"STR(__LINE__); \
if (!this) isnew = true; \
} \
NET_GUARD(id); \
assert(this); \
} \
if (!this.sourceLoc) { \
- this.sourceLoc = __FILE__ ":" STR(__LINE__); \
+ this.sourceLoc = __FILE__":"STR(__LINE__); \
} \
if (!this.spawnfunc_checked) { \
_checkWhitelisted(this, #id); \