mirror of
https://github.com/rehlds/rehlds.git
synced 2025-04-24 07:13:38 +03:00
Use __FUNCTION__.
This commit is contained in:
parent
94b591b4a8
commit
3e7aaae919
@ -1007,10 +1007,12 @@ qboolean Cmd_ForwardToServerInternal(sizebuf_t *pBuf)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
char tempData[4096];
|
char tempData[4096], buffername[64];
|
||||||
sizebuf_t tempBuf;
|
sizebuf_t tempBuf;
|
||||||
|
|
||||||
tempBuf.buffername = "Cmd_ForwardToServerInternal::tempBuf";
|
Q_sprintf(buffername, "%s::%s", __FUNCTION__, nameof_variable(tempBuf));
|
||||||
|
|
||||||
|
tempBuf.buffername = buffername;
|
||||||
tempBuf.data = (byte *)tempData;
|
tempBuf.data = (byte *)tempData;
|
||||||
tempBuf.maxsize = 4096;
|
tempBuf.maxsize = 4096;
|
||||||
tempBuf.cursize = 0;
|
tempBuf.cursize = 0;
|
||||||
|
@ -202,4 +202,8 @@
|
|||||||
|
|
||||||
#define EXT_FUNC FORCE_STACK_ALIGN
|
#define EXT_FUNC FORCE_STACK_ALIGN
|
||||||
|
|
||||||
|
// Used to obtain the string name of a variable.
|
||||||
|
#define nameof_variable(name) template_nameof_variable(name, #name)
|
||||||
|
template <typename T> const char* template_nameof_variable(const T& /*validate_type*/, const char* name) { return name; }
|
||||||
|
|
||||||
#endif // _OSCONFIG_H
|
#endif // _OSCONFIG_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user