mirror of
https://github.com/minetest/minetest.git
synced 2025-07-05 01:10:22 +02:00
Rename macros with two leading underscores
These names are reserved for the compiler/library implementations.
This commit is contained in:
@ -110,7 +110,7 @@ int ModApiServer::l_get_player_ip(lua_State *L)
|
||||
}
|
||||
catch(con::PeerNotFoundException) // unlikely
|
||||
{
|
||||
dstream << __FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
dstream << FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
lua_pushnil(L); // error
|
||||
return 1;
|
||||
}
|
||||
@ -136,7 +136,7 @@ int ModApiServer::l_get_player_information(lua_State *L)
|
||||
}
|
||||
catch(con::PeerNotFoundException) // unlikely
|
||||
{
|
||||
dstream << __FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
dstream << FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
lua_pushnil(L); // error
|
||||
return 1;
|
||||
}
|
||||
@ -150,7 +150,7 @@ int ModApiServer::l_get_player_information(lua_State *L)
|
||||
|
||||
#define ERET(code) \
|
||||
if (!(code)) { \
|
||||
dstream << __FUNCTION_NAME << ": peer was not found" << std::endl; \
|
||||
dstream << FUNCTION_NAME << ": peer was not found" << std::endl; \
|
||||
lua_pushnil(L); /* error */ \
|
||||
return 1; \
|
||||
}
|
||||
@ -281,7 +281,7 @@ int ModApiServer::l_ban_player(lua_State *L)
|
||||
}
|
||||
catch(con::PeerNotFoundException) // unlikely
|
||||
{
|
||||
dstream << __FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
dstream << FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
lua_pushboolean(L, false); // error
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user