1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Rename macros with two leading underscores

These names are reserved for the compiler/library implementations.
This commit is contained in:
ShadowNinja 2015-10-14 02:39:30 -04:00 committed by kwolekr
parent 6f4d6cb574
commit 6f2d785d0f
20 changed files with 109 additions and 113 deletions

View file

@ -98,7 +98,7 @@ MeshUpdateQueue::~MeshUpdateQueue()
*/
void MeshUpdateQueue::addBlock(v3s16 p, MeshMakeData *data, bool ack_block_to_server, bool urgent)
{
DSTACK(__FUNCTION_NAME);
DSTACK(FUNCTION_NAME);
assert(data); // pre-condition
@ -323,7 +323,7 @@ void Client::connect(Address address,
const std::string &address_name,
bool is_local_server)
{
DSTACK(__FUNCTION_NAME);
DSTACK(FUNCTION_NAME);
initLocalMapSaving(address, address_name, is_local_server);
@ -333,7 +333,7 @@ void Client::connect(Address address,
void Client::step(float dtime)
{
DSTACK(__FUNCTION_NAME);
DSTACK(FUNCTION_NAME);
// Limit a bit
if(dtime > 2.0)
@ -824,7 +824,7 @@ void Client::initLocalMapSaving(const Address &address,
void Client::ReceiveAll()
{
DSTACK(__FUNCTION_NAME);
DSTACK(FUNCTION_NAME);
u32 start_ms = porting::getTimeMs();
for(;;)
{
@ -850,7 +850,7 @@ void Client::ReceiveAll()
void Client::Receive()
{
DSTACK(__FUNCTION_NAME);
DSTACK(FUNCTION_NAME);
NetworkPacket pkt;
m_con.Receive(&pkt);
ProcessData(&pkt);
@ -867,7 +867,7 @@ inline void Client::handleCommand(NetworkPacket* pkt)
*/
void Client::ProcessData(NetworkPacket *pkt)
{
DSTACK(__FUNCTION_NAME);
DSTACK(FUNCTION_NAME);
ToClientCommand command = (ToClientCommand) pkt->getCommand();
u32 sender_peer_id = pkt->getPeerId();
@ -1213,7 +1213,7 @@ void Client::sendChangePassword(const std::string &oldpassword,
void Client::sendDamage(u8 damage)
{
DSTACK(__FUNCTION_NAME);
DSTACK(FUNCTION_NAME);
NetworkPacket pkt(TOSERVER_DAMAGE, sizeof(u8));
pkt << damage;
@ -1222,7 +1222,7 @@ void Client::sendDamage(u8 damage)
void Client::sendBreath(u16 breath)
{
DSTACK(__FUNCTION_NAME);
DSTACK(FUNCTION_NAME);
NetworkPacket pkt(TOSERVER_BREATH, sizeof(u16));
pkt << breath;
@ -1231,7 +1231,7 @@ void Client::sendBreath(u16 breath)
void Client::sendRespawn()
{
DSTACK(__FUNCTION_NAME);
DSTACK(FUNCTION_NAME);
NetworkPacket pkt(TOSERVER_RESPAWN, 0);
Send(&pkt);
@ -1239,7 +1239,7 @@ void Client::sendRespawn()
void Client::sendReady()
{
DSTACK(__FUNCTION_NAME);
DSTACK(FUNCTION_NAME);
NetworkPacket pkt(TOSERVER_CLIENT_READY,
1 + 1 + 1 + 1 + 2 + sizeof(char) * strlen(g_version_hash));